aboutsummaryrefslogtreecommitdiff
path: root/src/nat/nat_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nat/nat_api.c')
-rw-r--r--src/nat/nat_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nat/nat_api.c b/src/nat/nat_api.c
index a0e9f4793..69612584e 100644
--- a/src/nat/nat_api.c
+++ b/src/nat/nat_api.c
@@ -403,7 +403,7 @@ GNUNET_NAT_register (const struct GNUNET_CONFIGURATION_Handle *cfg,
403 len += addrlens[i]; 403 len += addrlens[i];
404 str_len = strlen (config_section) + 1; 404 str_len = strlen (config_section) + 1;
405 len += str_len; 405 len += str_len;
406 if ( (len > GNUNET_SERVER_MAX_MESSAGE_SIZE - sizeof (*rm)) || 406 if ( (len > GNUNET_MAX_MESSAGE_SIZE - sizeof (*rm)) ||
407 (num_addrs > UINT16_MAX) ) 407 (num_addrs > UINT16_MAX) )
408 { 408 {
409 GNUNET_break (0); 409 GNUNET_break (0);