aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/namestore_api_monitor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/namestore/namestore_api_monitor.c')
-rw-r--r--src/namestore/namestore_api_monitor.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/namestore/namestore_api_monitor.c b/src/namestore/namestore_api_monitor.c
index 81ea41f7d..199aec608 100644
--- a/src/namestore/namestore_api_monitor.c
+++ b/src/namestore/namestore_api_monitor.c
@@ -154,7 +154,7 @@ check_result (void *cls, const struct RecordResultMessage *lrm)
154 size_t key_len; 154 size_t key_len;
155 155
156 (void) zm; 156 (void) zm;
157 key_len = ntohl (lrm->key_len); 157 key_len = ntohs (lrm->key_len);
158 (void) cls; 158 (void) cls;
159 if (0 == key_len) 159 if (0 == key_len)
160 { 160 {
@@ -222,7 +222,7 @@ handle_result (void *cls, const struct RecordResultMessage *lrm)
222 const char *name_tmp; 222 const char *name_tmp;
223 const char *rd_ser_tmp; 223 const char *rd_ser_tmp;
224 224
225 key_len = ntohl (lrm->key_len); 225 key_len = ntohs (lrm->key_len);
226 rd_len = ntohs (lrm->rd_len); 226 rd_len = ntohs (lrm->rd_len);
227 rd_count = ntohs (lrm->rd_count); 227 rd_count = ntohs (lrm->rd_count);
228 name_len = ntohs (lrm->name_len); 228 name_len = ntohs (lrm->name_len);
@@ -308,7 +308,7 @@ reconnect (struct GNUNET_NAMESTORE_ZoneMonitor *zm)
308 GNUNET_IDENTITY_write_private_key_to_buffer (&zm->zone, 308 GNUNET_IDENTITY_write_private_key_to_buffer (&zm->zone,
309 &sm[1], 309 &sm[1],
310 zm->key_len); 310 zm->key_len);
311 sm->key_len = htonl (zm->key_len); 311 sm->key_len = htons (zm->key_len);
312 sm->filter = htons (zm->filter); 312 sm->filter = htons (zm->filter);
313 GNUNET_MQ_send (zm->mq, env); 313 GNUNET_MQ_send (zm->mq, env);
314} 314}