aboutsummaryrefslogtreecommitdiff
path: root/src/transport/transport_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-09-02 11:31:38 +0000
committerChristian Grothoff <christian@grothoff.org>2011-09-02 11:31:38 +0000
commitd12aa71a4d8b31475fdd3b3bd60ad947f995dc49 (patch)
tree73882463fa1c74a2dcefca093ab181e827b190ba /src/transport/transport_api.c
parent147d72a99e4ed0558c98fe7c9c41062ede51a68a (diff)
downloadgnunet-d12aa71a4d8b31475fdd3b3bd60ad947f995dc49.tar.gz
gnunet-d12aa71a4d8b31475fdd3b3bd60ad947f995dc49.zip
fix
Diffstat (limited to 'src/transport/transport_api.c')
-rw-r--r--src/transport/transport_api.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/transport/transport_api.c b/src/transport/transport_api.c
index bbfe1e63d..5ec7404e0 100644
--- a/src/transport/transport_api.c
+++ b/src/transport/transport_api.c
@@ -1203,14 +1203,13 @@ GNUNET_TRANSPORT_get_hello (struct GNUNET_TRANSPORT_Handle *handle,
1203{ 1203{
1204 struct GNUNET_TRANSPORT_GetHelloHandle *hwl; 1204 struct GNUNET_TRANSPORT_GetHelloHandle *hwl;
1205 1205
1206 if (handle->my_hello == NULL)
1207 return NULL;
1208 hwl = GNUNET_malloc (sizeof (struct GNUNET_TRANSPORT_GetHelloHandle)); 1206 hwl = GNUNET_malloc (sizeof (struct GNUNET_TRANSPORT_GetHelloHandle));
1209 hwl->rec = rec; 1207 hwl->rec = rec;
1210 hwl->rec_cls = rec_cls; 1208 hwl->rec_cls = rec_cls;
1211 hwl->handle = handle; 1209 hwl->handle = handle;
1212 GNUNET_CONTAINER_DLL_insert (handle->hwl_head, handle->hwl_tail, hwl); 1210 GNUNET_CONTAINER_DLL_insert (handle->hwl_head, handle->hwl_tail, hwl);
1213 rec (rec_cls, (const struct GNUNET_MessageHeader *) handle->my_hello); 1211 if (handle->my_hello != NULL)
1212 rec (rec_cls, (const struct GNUNET_MessageHeader *) handle->my_hello);
1214 return hwl; 1213 return hwl;
1215} 1214}
1216 1215