X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Ffragmentation%2Ftest_frag_ji.c;h=4779abdddbea5358ff35a58a68193fac45aad769;hb=087ad145760e874bf10252f96b5ce7fc1bd7a49f;hp=6512ddb034624352de1cff48268642bd430d2398;hpb=6dac073d8bdd079f31b147ee35757d86fcac0246;p=oweals%2Fgnunet.git diff --git a/src/fragmentation/test_frag_ji.c b/src/fragmentation/test_frag_ji.c index 6512ddb03..4779abddd 100644 --- a/src/fragmentation/test_frag_ji.c +++ b/src/fragmentation/test_frag_ji.c @@ -41,7 +41,7 @@ main(int argc, char * argv[]){ struct GNUNET_FRAGMENT_Context * ctx; struct GNUNET_MessageHeader *msg = (struct GNUNET_MessageHeader *)GNUNET_malloc(sizeof(struct GNUNET_MessageHeader)+2*mtu); ctx = GNUNET_FRAGMENT_context_create(NULL, message_proc1, msg); - msg->size = htons(sizeof(struct GNUNET_MessageHeader)+2*mtu); + msg->size = htons(sizeof(struct GNUNET_MessageHeader)+4*mtu); msg->type = htons(GNUNET_MESSAGE_TYPE_HELLO); struct GNUNET_PeerIdentity *sender; sender = (struct GNUNET_PeerIdentity *)GNUNET_malloc(sizeof(struct GNUNET_PeerIdentity));