Mercurial > pidgin.yaz
diff libpurple/protocols/silc/util.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 | 16bdcffb1c62 |
children | 35b4f1dc4c8d |
line wrap: on
line diff
--- a/libpurple/protocols/silc/util.c Mon Oct 29 00:09:18 2007 +0000 +++ b/libpurple/protocols/silc/util.c Mon Oct 29 00:19:53 2007 +0000 @@ -347,8 +347,12 @@ key_len = silc_pkcs_public_key_get_len(public_key); pk = silc_pkcs_public_key_encode(public_key, &pk_len); + if (!pk) + return; fingerprint = silc_hash_fingerprint(NULL, pk, pk_len); babbleprint = silc_hash_babbleprint(NULL, pk, pk_len); + if (!fingerprint || !babbleprint) + return; s = g_string_new(""); if (ident->realname)