summaryrefslogtreecommitdiff
path: root/src/lib/libssl/t1_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/t1_lib.c')
-rw-r--r--src/lib/libssl/t1_lib.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/libssl/t1_lib.c b/src/lib/libssl/t1_lib.c
index 46b47a95b7..d82573fdb6 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.50 2014/07/12 22:33:39 jsing Exp $ */ 1/* $OpenBSD: t1_lib.c,v 1.51 2014/07/13 16:03:10 beck 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 *
@@ -1426,7 +1426,8 @@ ssl_parse_serverhello_tlsext(SSL *s, unsigned char **p, unsigned char *d,
1426 if (!s->hit && tlsext_servername == 1) { 1426 if (!s->hit && tlsext_servername == 1) {
1427 if (s->tlsext_hostname) { 1427 if (s->tlsext_hostname) {
1428 if (s->session->tlsext_hostname == NULL) { 1428 if (s->session->tlsext_hostname == NULL) {
1429 s->session->tlsext_hostname = BUF_strdup(s->tlsext_hostname); 1429 s->session->tlsext_hostname =
1430 strdup(s->tlsext_hostname);
1430 1431
1431 if (!s->session->tlsext_hostname) { 1432 if (!s->session->tlsext_hostname) {
1432 *al = SSL_AD_UNRECOGNIZED_NAME; 1433 *al = SSL_AD_UNRECOGNIZED_NAME;