projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c15c152
)
fix uninitialized memory in network send
author
Matthias Wachs
<wachs@net.in.tum.de>
Thu, 5 Dec 2013 09:06:25 +0000
(09:06 +0000)
committer
Matthias Wachs
<wachs@net.in.tum.de>
Thu, 5 Dec 2013 09:06:25 +0000
(09:06 +0000)
src/dv/gnunet-service-dv.c
patch
|
blob
|
history
diff --git
a/src/dv/gnunet-service-dv.c
b/src/dv/gnunet-service-dv.c
index 20202a12337153f0ffdbd64b4dd92f460074658b..37a92a278c6fad980e7d9c564c643a80567bede6 100644
(file)
--- a/
src/dv/gnunet-service-dv.c
+++ b/
src/dv/gnunet-service-dv.c
@@
-1966,6
+1966,7
@@
add_route (void *cls,
struct Route *route = value;
struct GNUNET_DV_ConnectMessage cm;
+ memset (&cm, 0, sizeof (cm));
cm.header.size = htons (sizeof (cm));
cm.header.type = htons (GNUNET_MESSAGE_TYPE_DV_CONNECT);
cm.distance = htonl (route->target.distance);