summaryrefslogtreecommitdiffstats
path: root/ssl/s2_srvr.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>1999-02-15 21:05:21 +0000
committerDr. Stephen Henson <steve@openssl.org>1999-02-15 21:05:21 +0000
commita8236c8c322101c273d14c62282f264555e147c4 (patch)
tree6ec0e1acab729eac8ae5a1f7dd26428c4cf7a9ee /ssl/s2_srvr.c
parent1750ebcba914d87602007447433529f871d088f5 (diff)
Fix various memory leaks in SSL, apps and DSA
Diffstat (limited to 'ssl/s2_srvr.c')
-rw-r--r--ssl/s2_srvr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ssl/s2_srvr.c b/ssl/s2_srvr.c
index 7e8732f9cc..8580ac6a8d 100644
--- a/ssl/s2_srvr.c
+++ b/ssl/s2_srvr.c
@@ -910,6 +910,7 @@ SSL *s;
pkey=X509_get_pubkey(x509);
if (pkey == NULL) goto end;
i=EVP_VerifyFinal(&ctx,p,s->s2->tmp.rlen,pkey);
+ EVP_PKEY_free(pkey);
memset(&ctx,0,sizeof(ctx));
if (i)
@@ -933,8 +934,8 @@ msg_end:
ssl2_return_error(s,SSL2_PE_BAD_CERTIFICATE);
}
end:
- if (sk != NULL) sk_free(sk);
- if (x509 != NULL) X509_free(x509);
+ sk_free(sk);
+ X509_free(x509);
return(ret);
}