summaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-tng.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/gnunet-service-tng.c')
-rw-r--r--src/transport/gnunet-service-tng.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/transport/gnunet-service-tng.c b/src/transport/gnunet-service-tng.c
index bd9acd0cf..9c37f15e2 100644
--- a/src/transport/gnunet-service-tng.c
+++ b/src/transport/gnunet-service-tng.c
@@ -9505,7 +9505,8 @@ handle_add_queue_message (void *cls,
const char *addr;
uint16_t addr_len;
- if (ntohl (aqm->mtu) <= sizeof(struct TransportFragmentBoxMessage))
+ if ((0 != ntohl (aqm->mtu)) &&
+ (ntohl (aqm->mtu) <= sizeof(struct TransportFragmentBoxMessage)))
{
/* MTU so small as to be useless for transmissions,
required for #fragment_message()! */