aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2012-05-22 15:03:38 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2012-05-22 15:03:38 +0000
commit4af62f9eece2cabd6cd2693a7791e8a778ad3c93 (patch)
treea5e28454255c70718d45db9bd56ede10cec22f04
parent5afa110251ecd1230d1386e114b65508d5916027 (diff)
downloadgnunet-4af62f9eece2cabd6cd2693a7791e8a778ad3c93.tar.gz
gnunet-4af62f9eece2cabd6cd2693a7791e8a778ad3c93.zip
fixed segmentation fault due to missing GNUNET_STREAM_OPTION_END
-rw-r--r--src/stream/test_stream_2peers.c3
-rw-r--r--src/stream/test_stream_2peers_halfclose.c3
-rw-r--r--src/stream/test_stream_local.c3
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)
482 &d2->id, /* Null for local peer? */ 482 &d2->id, /* Null for local peer? */
483 10, /* App port */ 483 10, /* App port */
484 &stream_open_cb, 484 &stream_open_cb,
485 &peer1); 485 &peer1,
486 GNUNET_STREAM_OPTION_END);
486 GNUNET_assert (NULL != peer1.socket); 487 GNUNET_assert (NULL != peer1.socket);
487} 488}
488 489
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)
708 &d2->id, /* Null for local peer? */ 708 &d2->id, /* Null for local peer? */
709 10, /* App port */ 709 10, /* App port */
710 &stream_open_cb, 710 &stream_open_cb,
711 &peer1); 711 &peer1,
712 GNUNET_STREAM_OPTION_END);
712 GNUNET_assert (NULL != peer1.socket); 713 GNUNET_assert (NULL != peer1.socket);
713} 714}
714 715
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)
381 &self, /* Null for local peer? */ 381 &self, /* Null for local peer? */
382 10, /* App port */ 382 10, /* App port */
383 &stream_open_cb, 383 &stream_open_cb,
384 &peer1); 384 &peer1,
385 GNUNET_STREAM_OPTION_END);
385 GNUNET_assert (NULL != peer1.socket); 386 GNUNET_assert (NULL != peer1.socket);
386} 387}
387 388