From 4af62f9eece2cabd6cd2693a7791e8a778ad3c93 Mon Sep 17 00:00:00 2001 From: Sree Harsha Totakura Date: Tue, 22 May 2012 15:03:38 +0000 Subject: [PATCH] fixed segmentation fault due to missing GNUNET_STREAM_OPTION_END --- src/stream/test_stream_2peers.c | 3 ++- src/stream/test_stream_2peers_halfclose.c | 3 ++- src/stream/test_stream_local.c | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/stream/test_stream_2peers.c b/src/stream/test_stream_2peers.c index d10e12c5e..1fdc0ee19 100644 --- a/src/stream/test_stream_2peers.c +++ b/src/stream/test_stream_2peers.c @@ -482,7 +482,8 @@ peergroup_ready (void *cls, const char *emsg) &d2->id, /* Null for local peer? */ 10, /* App port */ &stream_open_cb, - &peer1); + &peer1, + GNUNET_STREAM_OPTION_END); GNUNET_assert (NULL != peer1.socket); } diff --git a/src/stream/test_stream_2peers_halfclose.c b/src/stream/test_stream_2peers_halfclose.c index f001dddc6..7997c20e3 100644 --- a/src/stream/test_stream_2peers_halfclose.c +++ b/src/stream/test_stream_2peers_halfclose.c @@ -708,7 +708,8 @@ peergroup_ready (void *cls, const char *emsg) &d2->id, /* Null for local peer? */ 10, /* App port */ &stream_open_cb, - &peer1); + &peer1, + GNUNET_STREAM_OPTION_END); GNUNET_assert (NULL != peer1.socket); } diff --git a/src/stream/test_stream_local.c b/src/stream/test_stream_local.c index 63a67ac3f..c9fab8406 100644 --- a/src/stream/test_stream_local.c +++ b/src/stream/test_stream_local.c @@ -381,7 +381,8 @@ test (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) &self, /* Null for local peer? */ 10, /* App port */ &stream_open_cb, - &peer1); + &peer1, + GNUNET_STREAM_OPTION_END); GNUNET_assert (NULL != peer1.socket); } -- 2.25.1