aboutsummaryrefslogtreecommitdiff
path: root/src/nat-auto/nat_auto_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nat-auto/nat_auto_api.c')
-rw-r--r--src/nat-auto/nat_auto_api.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nat-auto/nat_auto_api.c b/src/nat-auto/nat_auto_api.c
index a5b41ac49..8a7eaf264 100644
--- a/src/nat-auto/nat_auto_api.c
+++ b/src/nat-auto/nat_auto_api.c
@@ -42,7 +42,7 @@ struct GNUNET_NAT_AUTO_AutoHandle
42 * Configuration we use. 42 * Configuration we use.
43 */ 43 */
44 const struct GNUNET_CONFIGURATION_Handle *cfg; 44 const struct GNUNET_CONFIGURATION_Handle *cfg;
45 45
46 /** 46 /**
47 * Message queue for communicating with the NAT service. 47 * Message queue for communicating with the NAT service.
48 */ 48 */
@@ -206,8 +206,8 @@ ah_error_handler (void *cls,
206 */ 206 */
207struct GNUNET_NAT_AUTO_AutoHandle * 207struct GNUNET_NAT_AUTO_AutoHandle *
208GNUNET_NAT_AUTO_autoconfig_start (const struct GNUNET_CONFIGURATION_Handle *cfg, 208GNUNET_NAT_AUTO_autoconfig_start (const struct GNUNET_CONFIGURATION_Handle *cfg,
209 GNUNET_NAT_AUTO_AutoResultCallback cb, 209 GNUNET_NAT_AUTO_AutoResultCallback cb,
210 void *cb_cls) 210 void *cb_cls)
211{ 211{
212 struct GNUNET_NAT_AUTO_AutoHandle *ah = GNUNET_new (struct GNUNET_NAT_AUTO_AutoHandle); 212 struct GNUNET_NAT_AUTO_AutoHandle *ah = GNUNET_new (struct GNUNET_NAT_AUTO_AutoHandle);
213 struct GNUNET_MQ_MessageHandler handlers[] = { 213 struct GNUNET_MQ_MessageHandler handlers[] = {
@@ -224,7 +224,7 @@ GNUNET_NAT_AUTO_autoconfig_start (const struct GNUNET_CONFIGURATION_Handle *cfg,
224 224
225 buf = GNUNET_CONFIGURATION_serialize (cfg, 225 buf = GNUNET_CONFIGURATION_serialize (cfg,
226 &size); 226 &size);
227 if (size > GNUNET_SERVER_MAX_MESSAGE_SIZE - sizeof (*req)) 227 if (size > GNUNET_MAX_MESSAGE_SIZE - sizeof (*req))
228 { 228 {
229 GNUNET_break (0); 229 GNUNET_break (0);
230 GNUNET_free (buf); 230 GNUNET_free (buf);