diff options
Diffstat (limited to 'src/social')
-rw-r--r-- | src/social/gnunet-social.c | 2 | ||||
-rw-r--r-- | src/social/social_api.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/social/gnunet-social.c b/src/social/gnunet-social.c index 0de8809ff..12c5bf2e1 100644 --- a/src/social/gnunet-social.c +++ b/src/social/gnunet-social.c | |||
@@ -281,7 +281,7 @@ exit_fail () | |||
281 | * This also indicates the end of the connection to the service. | 281 | * This also indicates the end of the connection to the service. |
282 | */ | 282 | */ |
283 | static void | 283 | static void |
284 | host_left () | 284 | host_left (void *cls) |
285 | { | 285 | { |
286 | GNUNET_log (GNUNET_ERROR_TYPE_MESSAGE, | 286 | GNUNET_log (GNUNET_ERROR_TYPE_MESSAGE, |
287 | "The host has left the place.\n"); | 287 | "The host has left the place.\n"); |
diff --git a/src/social/social_api.c b/src/social/social_api.c index 96ddfe912..89843831b 100644 --- a/src/social/social_api.c +++ b/src/social/social_api.c | |||
@@ -2773,6 +2773,8 @@ GNUNET_SOCIAL_app_disconnect (struct GNUNET_SOCIAL_App *app, | |||
2773 | GNUNET_ContinuationCallback disconnect_cb, | 2773 | GNUNET_ContinuationCallback disconnect_cb, |
2774 | void *disconnect_cls) | 2774 | void *disconnect_cls) |
2775 | { | 2775 | { |
2776 | if (NULL == app) return; | ||
2777 | |||
2776 | app->disconnect_cb = disconnect_cb; | 2778 | app->disconnect_cb = disconnect_cb; |
2777 | app->disconnect_cls = disconnect_cls; | 2779 | app->disconnect_cls = disconnect_cls; |
2778 | 2780 | ||