- wipe in case of local variable usage
authorBart Polot <bart@net.in.tum.de>
Thu, 16 May 2013 17:46:46 +0000 (17:46 +0000)
committerBart Polot <bart@net.in.tum.de>
Thu, 16 May 2013 17:46:46 +0000 (17:46 +0000)
src/mesh/mesh_common.c

index b4fc406720a5508c2e7567a615068402c2d838e1..228b30aec97d9e1a4ad24833dfaea990a4ab46d4 100644 (file)
@@ -55,6 +55,7 @@ GMC_min_pid (uint32_t a, uint32_t b)
 void
 GMC_hash32 (uint32_t i, struct GNUNET_HashCode *h)
 {
+  memset (h, 0, sizeof(struct GNUNET_HashCode));
   *(unsigned int *) h = i;
 }