From d12aa71a4d8b31475fdd3b3bd60ad947f995dc49 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 2 Sep 2011 11:31:38 +0000 Subject: fix --- src/transport/transport_api.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') 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, { struct GNUNET_TRANSPORT_GetHelloHandle *hwl; - if (handle->my_hello == NULL) - return NULL; hwl = GNUNET_malloc (sizeof (struct GNUNET_TRANSPORT_GetHelloHandle)); hwl->rec = rec; hwl->rec_cls = rec_cls; hwl->handle = handle; GNUNET_CONTAINER_DLL_insert (handle->hwl_head, handle->hwl_tail, hwl); - rec (rec_cls, (const struct GNUNET_MessageHeader *) handle->my_hello); + if (handle->my_hello != NULL) + rec (rec_cls, (const struct GNUNET_MessageHeader *) handle->my_hello); return hwl; } -- cgit v1.2.3