summaryrefslogtreecommitdiff
path: root/src/nat/gnunet-service-nat.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-12-16 12:10:19 +0100
committerChristian Grothoff <christian@grothoff.org>2016-12-16 12:10:19 +0100
commitf5db4fd9c3225e242633d6545f7b764767a938c1 (patch)
treeae7415cd4c66aacd2761d4478a4b65ab56d080e2 /src/nat/gnunet-service-nat.c
parent1a5afc122701558b20e95f34115145bb79180f03 (diff)
downloadgnunet-f5db4fd9c3225e242633d6545f7b764767a938c1.tar.gz
gnunet-f5db4fd9c3225e242633d6545f7b764767a938c1.zip
fix shutdown, fix size calculation
Diffstat (limited to 'src/nat/gnunet-service-nat.c')
-rw-r--r--src/nat/gnunet-service-nat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nat/gnunet-service-nat.c b/src/nat/gnunet-service-nat.c
index 0da854883..4ad6c8d2c 100644
--- a/src/nat/gnunet-service-nat.c
+++ b/src/nat/gnunet-service-nat.c
@@ -837,7 +837,7 @@ handle_autoconfig_request (void *cls,
837 const struct GNUNET_NAT_AutoconfigRequestMessage *message) 837 const struct GNUNET_NAT_AutoconfigRequestMessage *message)
838{ 838{
839 struct ClientHandle *ch = cls; 839 struct ClientHandle *ch = cls;
840 size_t left = ntohs (message->header.size); 840 size_t left = ntohs (message->header.size) - sizeof (*message);
841 struct GNUNET_CONFIGURATION_Handle *c; 841 struct GNUNET_CONFIGURATION_Handle *c;
842 842
843 c = GNUNET_CONFIGURATION_create (); 843 c = GNUNET_CONFIGURATION_create ();