aboutsummaryrefslogtreecommitdiff
path: root/src/dht/gnunet-service-dht_neighbours.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-08-21 23:00:02 +0200
committerChristian Grothoff <christian@grothoff.org>2022-08-21 23:00:02 +0200
commit68af3744034c412a6c01ae230d13304d66f0ae78 (patch)
tree1f616c3be5935c6e8cb6d2d9195457cfe411e346 /src/dht/gnunet-service-dht_neighbours.c
parentd1e7d2af59e7b7c4a633c1853e43d3c35d3c9f88 (diff)
downloadgnunet-68af3744034c412a6c01ae230d13304d66f0ae78.tar.gz
gnunet-68af3744034c412a6c01ae230d13304d66f0ae78.zip
-fix uninitialized 'reserved' field
Diffstat (limited to 'src/dht/gnunet-service-dht_neighbours.c')
-rw-r--r--src/dht/gnunet-service-dht_neighbours.c3
1 files changed, 2 insertions, 1 deletions
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,
1776 prm->header.type = htons (GNUNET_MESSAGE_TYPE_DHT_P2P_RESULT); 1776 prm->header.type = htons (GNUNET_MESSAGE_TYPE_DHT_P2P_RESULT);
1777 prm->header.size = htons (sizeof (buf)); 1777 prm->header.size = htons (sizeof (buf));
1778 prm->type = htonl ((uint32_t) bd->type); 1778 prm->type = htonl ((uint32_t) bd->type);
1779 prm->options = htons ((uint32_t) ro); 1779 prm->reserved = htons (0);
1780 prm->options = htons ((uint16_t) ro);
1780 prm->put_path_length = htons ((uint16_t) ppl); 1781 prm->put_path_length = htons ((uint16_t) ppl);
1781 prm->get_path_length = htons ((uint16_t) get_path_length); 1782 prm->get_path_length = htons ((uint16_t) get_path_length);
1782 prm->expiration_time = GNUNET_TIME_absolute_hton (bd->expiration_time); 1783 prm->expiration_time = GNUNET_TIME_absolute_hton (bd->expiration_time);