From d8d80eb7eb03ec5b74b24ede635ff830c573a9d6 Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Mon, 22 Apr 2002 12:40:36 +0000 Subject: [PATCH] updates. --- lib/silccrypt/silcpkcs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/silccrypt/silcpkcs.c b/lib/silccrypt/silcpkcs.c index 6cf9a9d7..45810bbf 100644 --- a/lib/silccrypt/silcpkcs.c +++ b/lib/silccrypt/silcpkcs.c @@ -565,7 +565,7 @@ SilcPublicKey silc_pkcs_public_key_alloc(char *name, char *identifier, SilcUInt32 pk_len) { SilcPublicKey public_key; - char *tmp; + char *tmp = NULL; public_key = silc_calloc(1, sizeof(*public_key)); public_key->len = 4 + 2 + strlen(name) + 2 + strlen(identifier) + pk_len; @@ -582,6 +582,7 @@ SilcPublicKey silc_pkcs_public_key_alloc(char *name, char *identifier, } public_key->identifier = strdup(identifier); + silc_free(tmp); return public_key; } -- 2.43.0