summaryrefslogtreecommitdiff
path: root/src/lib/libssl/d1_srvr.c
diff options
context:
space:
mode:
authorjsg <>2015-05-15 11:00:14 +0000
committerjsg <>2015-05-15 11:00:14 +0000
commit5e21cdbca851c965cd196f1d77d376bda7ff1e4f (patch)
treef00dd64612742b35f7b46f91be93e5056960a0c1 /src/lib/libssl/d1_srvr.c
parentdfd58b2d262bb801a9048813d922b51c08607ba1 (diff)
downloadopenbsd-5e21cdbca851c965cd196f1d77d376bda7ff1e4f.tar.gz
openbsd-5e21cdbca851c965cd196f1d77d376bda7ff1e4f.tar.bz2
openbsd-5e21cdbca851c965cd196f1d77d376bda7ff1e4f.zip
Fix return paths with missing EVP_CIPHER_CTX_cleanup() calls.
ok doug@
Diffstat (limited to 'src/lib/libssl/d1_srvr.c')
-rw-r--r--src/lib/libssl/d1_srvr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libssl/d1_srvr.c b/src/lib/libssl/d1_srvr.c
index 1d3779f567..27f350fcb6 100644
--- a/src/lib/libssl/d1_srvr.c
+++ b/src/lib/libssl/d1_srvr.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: d1_srvr.c,v 1.50 2015/03/27 12:29:54 jsing Exp $ */ 1/* $OpenBSD: d1_srvr.c,v 1.51 2015/05/15 11:00:14 jsg Exp $ */
2/* 2/*
3 * DTLS implementation written by Nagendra Modadugu 3 * DTLS implementation written by Nagendra Modadugu
4 * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. 4 * (nagendra@cs.stanford.edu) for the OpenSSL project 2005.
@@ -1288,6 +1288,7 @@ dtls1_send_newsession_ticket(SSL *s)
1288 if (tctx->tlsext_ticket_key_cb(s, key_name, iv, &ctx, 1288 if (tctx->tlsext_ticket_key_cb(s, key_name, iv, &ctx,
1289 &hctx, 1) < 0) { 1289 &hctx, 1) < 0) {
1290 free(senc); 1290 free(senc);
1291 EVP_CIPHER_CTX_cleanup(&ctx);
1291 return -1; 1292 return -1;
1292 } 1293 }
1293 } else { 1294 } else {