From: Christian Grothoff Date: Mon, 23 Jan 2017 13:28:30 +0000 (+0100) Subject: use correct header size calculation in test X-Git-Tag: taler-0.2.1~334 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=55990396cd36175eef320e0ced826639e0945968;p=oweals%2Fgnunet.git use correct header size calculation in test --- diff --git a/src/cadet/test_cadet_single.c b/src/cadet/test_cadet_single.c index 636def35d..d9aa1a214 100644 --- a/src/cadet/test_cadet_single.c +++ b/src/cadet/test_cadet_single.c @@ -234,7 +234,7 @@ do_send (void *cls, size_t size, void *buf) result = GNUNET_SYSERR; return 0; } - m->size = htons (sizeof (struct GNUNET_MessageHeader)); + m->size = htons (sizeof (struct GNUNET_MessageHeader) + DATA_SIZE); m->type = htons (1); memset (&m[1], 0, DATA_SIZE); GNUNET_assert (size >= sizeof (struct GNUNET_MessageHeader) + DATA_SIZE);