From 68af3744034c412a6c01ae230d13304d66f0ae78 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 21 Aug 2022 23:00:02 +0200 Subject: -fix uninitialized 'reserved' field --- src/dht/gnunet-service-dht_neighbours.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/dht/gnunet-service-dht_neighbours.c') diff --git a/src/dht/gnunet-service-dht_neighbours.c b/src/dht/gnunet-service-dht_neighbours.c index 778bf7ce0..07eb1a6c1 100644 --- a/src/dht/gnunet-service-dht_neighbours.c +++ b/src/dht/gnunet-service-dht_neighbours.c @@ -1776,7 +1776,8 @@ GDS_NEIGHBOURS_handle_reply (struct PeerInfo *pi, prm->header.type = htons (GNUNET_MESSAGE_TYPE_DHT_P2P_RESULT); prm->header.size = htons (sizeof (buf)); prm->type = htonl ((uint32_t) bd->type); - prm->options = htons ((uint32_t) ro); + prm->reserved = htons (0); + prm->options = htons ((uint16_t) ro); prm->put_path_length = htons ((uint16_t) ppl); prm->get_path_length = htons ((uint16_t) get_path_length); prm->expiration_time = GNUNET_TIME_absolute_hton (bd->expiration_time); -- cgit v1.2.3