diff options
Diffstat (limited to 'src/service/hostlist/gnunet-daemon-hostlist_client.c')
-rw-r--r-- | src/service/hostlist/gnunet-daemon-hostlist_client.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/service/hostlist/gnunet-daemon-hostlist_client.c b/src/service/hostlist/gnunet-daemon-hostlist_client.c index 483233fc6..3f963332d 100644 --- a/src/service/hostlist/gnunet-daemon-hostlist_client.c +++ b/src/service/hostlist/gnunet-daemon-hostlist_client.c | |||
@@ -415,7 +415,8 @@ callback_download (void *ptr, size_t size, size_t nmemb, void *ctx) | |||
415 | msg, | 415 | msg, |
416 | shc_cont, | 416 | shc_cont, |
417 | NULL); | 417 | NULL); |
418 | GNUNET_CONTAINER_DLL_insert (shc_head, shc_tail, shc); | 418 | if (NULL != shc) |
419 | GNUNET_CONTAINER_DLL_insert (shc_head, shc_tail, shc); | ||
419 | memmove (download_buffer, &download_buffer[msize], download_pos - msize); | 420 | memmove (download_buffer, &download_buffer[msize], download_pos - msize); |
420 | download_pos -= msize; | 421 | download_pos -= msize; |
421 | } | 422 | } |
@@ -1753,7 +1754,7 @@ void | |||
1753 | GNUNET_HOSTLIST_client_stop () | 1754 | GNUNET_HOSTLIST_client_stop () |
1754 | { | 1755 | { |
1755 | struct GNUNET_PEERSTORE_StoreHelloContext *pos; | 1756 | struct GNUNET_PEERSTORE_StoreHelloContext *pos; |
1756 | 1757 | ||
1757 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Hostlist client shutdown\n"); | 1758 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Hostlist client shutdown\n"); |
1758 | while (NULL != (pos = shc_head)) | 1759 | while (NULL != (pos = shc_head)) |
1759 | { | 1760 | { |