Mercurial > pidgin
diff libpurple/protocols/silc/pk.c @ 21044:6b02dba5bf41
Patch from Pekka Riikone to fix various SILC issues.
Fixes: #3103
author | Ethan Blanton <elb@pidgin.im> |
---|---|
date | Mon, 29 Oct 2007 00:19:53 +0000 |
parents | 980a104267da |
children | 6de09629f091 |
line wrap: on
line diff
--- a/libpurple/protocols/silc/pk.c Mon Oct 29 00:09:18 2007 +0000 +++ b/libpurple/protocols/silc/pk.c Mon Oct 29 00:19:53 2007 +0000 @@ -158,6 +158,11 @@ NULL, &hostname, &ip, &port); pk = silc_pkcs_public_key_encode(public_key, &pk_len); + if (!pk) { + if (completion) + completion(FALSE, context); + return; + } if (conn_type == SILC_CONN_SERVER || conn_type == SILC_CONN_ROUTER) {