summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_sess.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/ssl_sess.c')
-rw-r--r--src/lib/libssl/ssl_sess.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/ssl_sess.c b/src/lib/libssl/ssl_sess.c
index 101da82b56..d1cd418601 100644
--- a/src/lib/libssl/ssl_sess.c
+++ b/src/lib/libssl/ssl_sess.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_sess.c,v 1.37 2014/07/12 23:59:11 jsing Exp $ */ 1/* $OpenBSD: ssl_sess.c,v 1.38 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 *
@@ -367,7 +367,7 @@ ssl_get_new_session(SSL *s, int session)
367 367
368sess_id_done: 368sess_id_done:
369 if (s->tlsext_hostname) { 369 if (s->tlsext_hostname) {
370 ss->tlsext_hostname = BUF_strdup(s->tlsext_hostname); 370 ss->tlsext_hostname = strdup(s->tlsext_hostname);
371 if (ss->tlsext_hostname == NULL) { 371 if (ss->tlsext_hostname == NULL) {
372 SSLerr(SSL_F_SSL_GET_NEW_SESSION, 372 SSLerr(SSL_F_SSL_GET_NEW_SESSION,
373 ERR_R_INTERNAL_ERROR); 373 ERR_R_INTERNAL_ERROR);