projects
/
silc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ed7f665
)
Do not free public key in failure in silc_show_public_key.
author
Pekka Riikonen
<priikone@silcnet.org>
Thu, 17 May 2007 15:05:13 +0000
(15:05 +0000)
committer
Pekka Riikonen
<priikone@silcnet.org>
Thu, 17 May 2007 15:05:13 +0000
(15:05 +0000)
lib/silcapputil/silcapputil.c
patch
|
blob
|
history
diff --git
a/lib/silcapputil/silcapputil.c
b/lib/silcapputil/silcapputil.c
index 9734817286b216ce3432b1fac79d8e8a1eb6e562..67df01eb161720ed6f9075659c8d4f8c43b1acd1 100644
(file)
--- a/
lib/silcapputil/silcapputil.c
+++ b/
lib/silcapputil/silcapputil.c
@@
-287,18
+287,14
@@
SilcBool silc_show_public_key(SilcPublicKey public_key)
SilcUInt32 key_len = 0;
silc_pubkey = silc_pkcs_get_context(SILC_PKCS_SILC, public_key);
SilcUInt32 key_len = 0;
silc_pubkey = silc_pkcs_get_context(SILC_PKCS_SILC, public_key);
- if (!silc_pubkey) {
- silc_pkcs_public_key_free(public_key);
+ if (!silc_pubkey)
return FALSE;
return FALSE;
- }
ident = &silc_pubkey->identifier;
key_len = silc_pkcs_public_key_get_len(public_key);
pk = silc_pkcs_public_key_encode(public_key, &pk_len);
ident = &silc_pubkey->identifier;
key_len = silc_pkcs_public_key_get_len(public_key);
pk = silc_pkcs_public_key_encode(public_key, &pk_len);
- if (!pk) {
- silc_pkcs_public_key_free(public_key);
+ if (!pk)
return FALSE;
return FALSE;
- }
fingerprint = silc_hash_fingerprint(NULL, pk, pk_len);
babbleprint = silc_hash_babbleprint(NULL, pk, pk_len);
fingerprint = silc_hash_fingerprint(NULL, pk, pk_len);
babbleprint = silc_hash_babbleprint(NULL, pk, pk_len);