gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r29590 - gnunet/src/gns


From: gnunet
Subject: [GNUnet-SVN] r29590 - gnunet/src/gns
Date: Thu, 26 Sep 2013 11:32:18 +0200

Author: grothoff
Date: 2013-09-26 11:32:18 +0200 (Thu, 26 Sep 2013)
New Revision: 29590

Modified:
   gnunet/src/gns/gns_api.c
   gnunet/src/gns/gnunet-service-gns.c
Log:
-fix uint16/uint32 confusion

Modified: gnunet/src/gns/gns_api.c
===================================================================
--- gnunet/src/gns/gns_api.c    2013-09-26 09:30:52 UTC (rev 29589)
+++ gnunet/src/gns/gns_api.c    2013-09-26 09:32:18 UTC (rev 29590)
@@ -572,7 +572,7 @@
   lookup_msg->type = htonl (type);
   if (NULL != shorten_zone_key)
   {
-    lookup_msg->have_key = htonl (GNUNET_YES);
+    lookup_msg->have_key = htons (GNUNET_YES);
     lookup_msg->shorten_key = *shorten_zone_key;
   }
   memcpy (&lookup_msg[1], name, strlen (name) + 1);

Modified: gnunet/src/gns/gnunet-service-gns.c
===================================================================
--- gnunet/src/gns/gnunet-service-gns.c 2013-09-26 09:30:52 UTC (rev 29589)
+++ gnunet/src/gns/gnunet-service-gns.c 2013-09-26 09:32:18 UTC (rev 29590)
@@ -549,7 +549,7 @@
   }
   sh_msg = (const struct GNUNET_GNS_ClientLookupMessage *) message;
   GNUNET_SERVER_notification_context_add (nc, client);
-  if (GNUNET_YES == ntohl (sh_msg->have_key))
+  if (GNUNET_YES == ntohs (sh_msg->have_key))
     key = &sh_msg->shorten_key;
   else
     key = NULL;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]