From: Pekka Riikonen Date: Fri, 2 Feb 2001 21:20:01 +0000 (+0000) Subject: Check PROTOCOL_FAILURE as well in the connect_to_server_* X-Git-Tag: SILC.0.1~267 X-Git-Url: http://git.silcnet.org/gitweb/?a=commitdiff_plain;h=77c09038006924062aaf5ff38d6cc39a7c1f192a;p=silc.git Check PROTOCOL_FAILURE as well in the connect_to_server_* routines. --- diff --git a/lib/silcclient/client.c b/lib/silcclient/client.c index c5382e2f..d63e0910 100644 --- a/lib/silcclient/client.c +++ b/lib/silcclient/client.c @@ -379,7 +379,8 @@ SILC_TASK_CALLBACK(silc_client_connect_to_server_second) SILC_LOG_DEBUG(("Start")); - if (protocol->state == SILC_PROTOCOL_STATE_ERROR) { + if (protocol->state == SILC_PROTOCOL_STATE_ERROR || + protocol->state == SILC_PROTOCOL_STATE_FAILURE) { /* Error occured during protocol */ SILC_LOG_DEBUG(("Error during KE protocol")); silc_protocol_free(protocol); @@ -450,7 +451,8 @@ SILC_TASK_CALLBACK(silc_client_connect_to_server_final) SILC_LOG_DEBUG(("Start")); - if (protocol->state == SILC_PROTOCOL_STATE_ERROR) { + if (protocol->state == SILC_PROTOCOL_STATE_ERROR || + protocol->state == SILC_PROTOCOL_STATE_FAILURE) { /* Error occured during protocol */ SILC_LOG_DEBUG(("Error during authentication protocol")); silc_protocol_free(protocol);