diff options
Diffstat (limited to 'src/namestore/namestore_api_monitor.c')
-rw-r--r-- | src/namestore/namestore_api_monitor.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/namestore/namestore_api_monitor.c b/src/namestore/namestore_api_monitor.c index 81ea41f7d..a99b386d0 100644 --- a/src/namestore/namestore_api_monitor.c +++ b/src/namestore/namestore_api_monitor.c | |||
@@ -25,9 +25,7 @@ | |||
25 | 25 | ||
26 | #include "platform.h" | 26 | #include "platform.h" |
27 | #include "gnunet_util_lib.h" | 27 | #include "gnunet_util_lib.h" |
28 | #include "gnunet_crypto_lib.h" | ||
29 | #include "gnunet_constants.h" | 28 | #include "gnunet_constants.h" |
30 | #include "gnunet_dnsparser_lib.h" | ||
31 | #include "gnunet_arm_service.h" | 29 | #include "gnunet_arm_service.h" |
32 | #include "gnunet_signatures.h" | 30 | #include "gnunet_signatures.h" |
33 | #include "gnunet_namestore_service.h" | 31 | #include "gnunet_namestore_service.h" |
@@ -154,7 +152,7 @@ check_result (void *cls, const struct RecordResultMessage *lrm) | |||
154 | size_t key_len; | 152 | size_t key_len; |
155 | 153 | ||
156 | (void) zm; | 154 | (void) zm; |
157 | key_len = ntohl (lrm->key_len); | 155 | key_len = ntohs (lrm->key_len); |
158 | (void) cls; | 156 | (void) cls; |
159 | if (0 == key_len) | 157 | if (0 == key_len) |
160 | { | 158 | { |
@@ -222,7 +220,7 @@ handle_result (void *cls, const struct RecordResultMessage *lrm) | |||
222 | const char *name_tmp; | 220 | const char *name_tmp; |
223 | const char *rd_ser_tmp; | 221 | const char *rd_ser_tmp; |
224 | 222 | ||
225 | key_len = ntohl (lrm->key_len); | 223 | key_len = ntohs (lrm->key_len); |
226 | rd_len = ntohs (lrm->rd_len); | 224 | rd_len = ntohs (lrm->rd_len); |
227 | rd_count = ntohs (lrm->rd_count); | 225 | rd_count = ntohs (lrm->rd_count); |
228 | name_len = ntohs (lrm->name_len); | 226 | name_len = ntohs (lrm->name_len); |
@@ -308,7 +306,7 @@ reconnect (struct GNUNET_NAMESTORE_ZoneMonitor *zm) | |||
308 | GNUNET_IDENTITY_write_private_key_to_buffer (&zm->zone, | 306 | GNUNET_IDENTITY_write_private_key_to_buffer (&zm->zone, |
309 | &sm[1], | 307 | &sm[1], |
310 | zm->key_len); | 308 | zm->key_len); |
311 | sm->key_len = htonl (zm->key_len); | 309 | sm->key_len = htons (zm->key_len); |
312 | sm->filter = htons (zm->filter); | 310 | sm->filter = htons (zm->filter); |
313 | GNUNET_MQ_send (zm->mq, env); | 311 | GNUNET_MQ_send (zm->mq, env); |
314 | } | 312 | } |