From 9d6ceec65d009901ebb8e8eebd480745f952ef18 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 17 Jun 2011 16:18:17 +0000 Subject: [PATCH] maybe cleaner to initialize explicitly --- src/dht/dht_api.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/dht/dht_api.c b/src/dht/dht_api.c index cd40314f4..11f13b184 100644 --- a/src/dht/dht_api.c +++ b/src/dht/dht_api.c @@ -706,9 +706,10 @@ GNUNET_DHT_route_start (struct GNUNET_DHT_Handle *handle, message->header.size = htons (msize); message->header.type = htons (GNUNET_MESSAGE_TYPE_DHT_LOCAL_ROUTE); - message->key = *key; message->options = htonl ((uint32_t) options); message->desired_replication_level = htonl (desired_replication_level); + message->reserved = 0; + message->key = *key; handle->uid_gen++; message->unique_id = GNUNET_htonll (handle->uid_gen); memcpy (&message[1], enc, esize); @@ -771,6 +772,7 @@ GNUNET_DHT_route_stop (struct GNUNET_DHT_RouteHandle *route_handle) pending->msg = &message->header; message->header.size = htons (msize); message->header.type = htons (GNUNET_MESSAGE_TYPE_DHT_LOCAL_ROUTE_STOP); + message->reserved = 0; message->unique_id = GNUNET_htonll (route_handle->uid); message->key = route_handle->key; pending->handle = handle; -- 2.25.1