diff options
Diffstat (limited to 'src/lib/libssl/bio_ssl.c')
-rw-r--r-- | src/lib/libssl/bio_ssl.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/libssl/bio_ssl.c b/src/lib/libssl/bio_ssl.c index d68e011c62..93cfa0d2a4 100644 --- a/src/lib/libssl/bio_ssl.c +++ b/src/lib/libssl/bio_ssl.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bio_ssl.c,v 1.28 2018/05/01 13:30:24 tb Exp $ */ | 1 | /* $OpenBSD: bio_ssl.c,v 1.29 2018/08/24 20:30:21 tb 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 | * |
@@ -568,7 +568,9 @@ BIO_ssl_copy_session_id(BIO *t, BIO *f) | |||
568 | if ((((BIO_SSL *)t->ptr)->ssl == NULL) || | 568 | if ((((BIO_SSL *)t->ptr)->ssl == NULL) || |
569 | (((BIO_SSL *)f->ptr)->ssl == NULL)) | 569 | (((BIO_SSL *)f->ptr)->ssl == NULL)) |
570 | return (0); | 570 | return (0); |
571 | SSL_copy_session_id(((BIO_SSL *)t->ptr)->ssl, ((BIO_SSL *)f->ptr)->ssl); | 571 | if (!SSL_copy_session_id(((BIO_SSL *)t->ptr)->ssl, |
572 | ((BIO_SSL *)f->ptr)->ssl)) | ||
573 | return (0); | ||
572 | return (1); | 574 | return (1); |
573 | } | 575 | } |
574 | 576 | ||