diff options
author | Bart Polot <bart@net.in.tum.de> | 2014-02-05 17:24:30 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2014-02-05 17:24:30 +0000 |
commit | af5d0221a5fb3974b28b9808eea8e30deb1faa01 (patch) | |
tree | 91752a97f3be9a6b8f3ee9e451ae0c6764a922ec /src/dht | |
parent | 9e6e6cf1ecb4424d93e8447d89b50a0d3cefeaf9 (diff) | |
download | gnunet-af5d0221a5fb3974b28b9808eea8e30deb1faa01.tar.gz gnunet-af5d0221a5fb3974b28b9808eea8e30deb1faa01.zip |
- wipe all previous data in *key so there is no potentially uninilialized memory
Diffstat (limited to 'src/dht')
-rw-r--r-- | src/dht/plugin_block_dht.c | 1 |
1 files changed, 1 insertions, 0 deletions
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, | |||
147 | return GNUNET_NO; | 147 | return GNUNET_NO; |
148 | } | 148 | } |
149 | hello = block; | 149 | hello = block; |
150 | memset (key, 0, sizeof (*key)); | ||
150 | pid = (struct GNUNET_PeerIdentity *) key; | 151 | pid = (struct GNUNET_PeerIdentity *) key; |
151 | if (GNUNET_OK != GNUNET_HELLO_get_id (hello, pid)) | 152 | if (GNUNET_OK != GNUNET_HELLO_get_id (hello, pid)) |
152 | { | 153 | { |