diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/transport/transport_api.c | 5 |
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 | ||