From af5d0221a5fb3974b28b9808eea8e30deb1faa01 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Wed, 5 Feb 2014 17:24:30 +0000 Subject: - wipe all previous data in *key so there is no potentially uninilialized memory --- src/dht/plugin_block_dht.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/dht/plugin_block_dht.c b/src/dht/plugin_block_dht.c index d6798f18c..1ecb39e27 100644 --- a/src/dht/plugin_block_dht.c +++ b/src/dht/plugin_block_dht.c @@ -147,6 +147,7 @@ block_plugin_dht_get_key (void *cls, enum GNUNET_BLOCK_Type type, return GNUNET_NO; } hello = block; + memset (key, 0, sizeof (*key)); pid = (struct GNUNET_PeerIdentity *) key; if (GNUNET_OK != GNUNET_HELLO_get_id (hello, pid)) { -- cgit v1.2.3