X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilcclient%2Fclient.c;h=255339941bd5d6d79151be6baf62a997fcabcbd4;hb=d4ead7075692a4abdc487fcb422cb9fd5b41a596;hp=2c731ebd78bdccb4add462821898156b7d798e6b;hpb=f38b21315fc72df3914664227ebcece766f01f66;p=silc.git diff --git a/lib/silcclient/client.c b/lib/silcclient/client.c index 2c731ebd..25533994 100644 --- a/lib/silcclient/client.c +++ b/lib/silcclient/client.c @@ -4,7 +4,7 @@ Author: Pekka Riikonen - Copyright (C) 1997 - 2008 Pekka Riikonen + Copyright (C) 1997 - 2014 Pekka Riikonen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -771,7 +771,7 @@ silc_client_connect_to_server(SilcClient client, SILC_LOG_DEBUG(("Connecting to server")); - if (!client || !remote_host) + if (!client || !remote_host || !callback) return NULL; if (client->internal->run_callback) { @@ -814,7 +814,7 @@ silc_client_connect_to_client(SilcClient client, SILC_LOG_DEBUG(("Connecting to client")); - if (!client || !remote_host) + if (!client || !remote_host || !callback) return NULL; if (client->internal->run_callback) { @@ -859,7 +859,7 @@ silc_client_key_exchange(SilcClient client, SILC_LOG_DEBUG(("Performing key exchange")); - if (!client || !stream) + if (!client || !stream || !callback) return NULL; if (client->internal->run_callback) {