aboutsummaryrefslogtreecommitdiff
path: root/src/gns/gns_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-09-26 09:32:18 +0000
committerChristian Grothoff <christian@grothoff.org>2013-09-26 09:32:18 +0000
commitbedd5d77bdc9736e223c964cee167f7472e843c8 (patch)
tree1ae2f99b9457477fd103149f867536a5509cd4e8 /src/gns/gns_api.c
parent5c3665450b6f72088c1fabbe24f9149fc16fc97c (diff)
downloadgnunet-bedd5d77bdc9736e223c964cee167f7472e843c8.tar.gz
gnunet-bedd5d77bdc9736e223c964cee167f7472e843c8.zip
-fix uint16/uint32 confusion
Diffstat (limited to 'src/gns/gns_api.c')
-rw-r--r--src/gns/gns_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gns/gns_api.c b/src/gns/gns_api.c
index 49d224621..0963bdc5a 100644
--- a/src/gns/gns_api.c
+++ b/src/gns/gns_api.c
@@ -572,7 +572,7 @@ GNUNET_GNS_lookup (struct GNUNET_GNS_Handle *handle,
572 lookup_msg->type = htonl (type); 572 lookup_msg->type = htonl (type);
573 if (NULL != shorten_zone_key) 573 if (NULL != shorten_zone_key)
574 { 574 {
575 lookup_msg->have_key = htonl (GNUNET_YES); 575 lookup_msg->have_key = htons (GNUNET_YES);
576 lookup_msg->shorten_key = *shorten_zone_key; 576 lookup_msg->shorten_key = *shorten_zone_key;
577 } 577 }
578 memcpy (&lookup_msg[1], name, strlen (name) + 1); 578 memcpy (&lookup_msg[1], name, strlen (name) + 1);