From: Christian Grothoff Date: Fri, 17 Jun 2011 16:18:17 +0000 (+0000) Subject: maybe cleaner to initialize explicitly X-Git-Tag: initial-import-from-subversion-38251~18091 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9d6ceec65d009901ebb8e8eebd480745f952ef18;p=oweals%2Fgnunet.git maybe cleaner to initialize explicitly --- 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;