summaryrefslogtreecommitdiff
path: root/src/transport/test_transport_api.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-05-14 08:19:01 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-05-14 08:19:01 +0000
commitdba79b65b935c252c76e2df8a13e472ebefb4fb0 (patch)
tree86939175bb3dc2edb9c505d4551294066bd9152c /src/transport/test_transport_api.c
parentd6e57643a0abcdcd6e7aee0ca587e56105b402c2 (diff)
- fix for rev 0002348
Diffstat (limited to 'src/transport/test_transport_api.c')
-rw-r--r--src/transport/test_transport_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transport/test_transport_api.c b/src/transport/test_transport_api.c
index 566d892b1..ceba9c3c7 100644
--- a/src/transport/test_transport_api.c
+++ b/src/transport/test_transport_api.c
@@ -223,9 +223,9 @@ notify_ready (void *cls, size_t size, void *buf)
}
GNUNET_assert (size >= MSIZE);
-
if (buf != NULL)
{
+ memset (buf, '\0', MSIZE);
hdr = buf;
hdr->size = htons (MSIZE);
hdr->type = htons (MTYPE);