fixed segmentation fault due to missing GNUNET_STREAM_OPTION_END
authorSree Harsha Totakura <totakura@in.tum.de>
Tue, 22 May 2012 15:03:38 +0000 (15:03 +0000)
committerSree Harsha Totakura <totakura@in.tum.de>
Tue, 22 May 2012 15:03:38 +0000 (15:03 +0000)
src/stream/test_stream_2peers.c
src/stream/test_stream_2peers_halfclose.c
src/stream/test_stream_local.c

index d10e12c5eb7348a2ed03d21006d4aaa53445838b..1fdc0ee19f7f900ea07fe772dff909bd243ca21b 100644 (file)
@@ -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);
 }
 
index f001dddc62934a52f52eaf829bf08ece7be8156e..7997c20e34b2829690df40d3143fdcb3ae5834dd 100644 (file)
@@ -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);
 }
 
index 63a67ac3fdc72df13f989b5b2cdd7a207a4c64e1..c9fab84066e7b3bc12acae051b09e079f5c8c96f 100644 (file)
@@ -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);
 }