summaryrefslogtreecommitdiff
path: root/src/lib/libssl/t1_lib.c
diff options
context:
space:
mode:
authorjsing <>2017-01-24 14:57:31 +0000
committerjsing <>2017-01-24 14:57:31 +0000
commit77a92585c62f2350be59692b9661aa7682960754 (patch)
tree011d7c934d9ef4ec841c1eca72c4ea94099316ff /src/lib/libssl/t1_lib.c
parent72a17d80e1722d32d76a5acd4cf46bbc3a05f610 (diff)
downloadopenbsd-77a92585c62f2350be59692b9661aa7682960754.tar.gz
openbsd-77a92585c62f2350be59692b9661aa7682960754.tar.bz2
openbsd-77a92585c62f2350be59692b9661aa7682960754.zip
sk_pop_free() checks for NULL so do not bother doing it from the callers.
Diffstat (limited to 'src/lib/libssl/t1_lib.c')
-rw-r--r--src/lib/libssl/t1_lib.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/libssl/t1_lib.c b/src/lib/libssl/t1_lib.c
index 23e1a2d350..9b60d664e5 100644
--- a/src/lib/libssl/t1_lib.c
+++ b/src/lib/libssl/t1_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: t1_lib.c,v 1.110 2017/01/24 12:24:07 jsing Exp $ */ 1/* $OpenBSD: t1_lib.c,v 1.111 2017/01/24 14:57:31 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -1593,10 +1593,8 @@ ssl_parse_clienthello_tlsext(SSL *s, unsigned char **p, unsigned char *d,
1593 } 1593 }
1594 sdata = data; 1594 sdata = data;
1595 if (dsize > 0) { 1595 if (dsize > 0) {
1596 if (s->internal->tlsext_ocsp_exts) { 1596 sk_X509_EXTENSION_pop_free(s->internal->tlsext_ocsp_exts,
1597 sk_X509_EXTENSION_pop_free(s->internal->tlsext_ocsp_exts, 1597 X509_EXTENSION_free);
1598 X509_EXTENSION_free);
1599 }
1600 1598
1601 s->internal->tlsext_ocsp_exts = 1599 s->internal->tlsext_ocsp_exts =
1602 d2i_X509_EXTENSIONS(NULL, 1600 d2i_X509_EXTENSIONS(NULL,