From 5ca211ca6a5df8421d71c7eab8e41b8392f63789 Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Thu, 29 May 2014 09:53:29 +0300 Subject: [PATCH] silc-client: handle key load error correctly --- apps/irssi/src/silc/core/clientutil.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/irssi/src/silc/core/clientutil.c b/apps/irssi/src/silc/core/clientutil.c index 0daceeff..56854526 100644 --- a/apps/irssi/src/silc/core/clientutil.c +++ b/apps/irssi/src/silc/core/clientutil.c @@ -363,9 +363,10 @@ int silc_client_load_keys(SilcClient client) ret = silc_load_key_pair(pub, prv, "", &irssi_pubkey, &irssi_privkey); if (!ret) ret = silc_load_key_pair(pub, prv, NULL, &irssi_pubkey, &irssi_privkey); - - if (!ret) + if (!ret) { SILC_LOG_ERROR(("Could not load key pair")); + return ret; + } if (silc_pkcs_private_key_get_len(irssi_privkey) < 4096) { fprintf(stdout, -- 2.24.0