diff options
Diffstat (limited to 'src/lib/libssl/s3_lib.c')
-rw-r--r-- | src/lib/libssl/s3_lib.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/lib/libssl/s3_lib.c b/src/lib/libssl/s3_lib.c index 1fd077ec6e..d4142e743f 100644 --- a/src/lib/libssl/s3_lib.c +++ b/src/lib/libssl/s3_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: s3_lib.c,v 1.139 2017/04/10 17:25:22 jsing Exp $ */ | 1 | /* $OpenBSD: s3_lib.c,v 1.140 2017/04/10 17:27:33 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 | * |
@@ -1844,11 +1844,8 @@ ssl3_free(SSL *s) | |||
1844 | 1844 | ||
1845 | free(S3I(s)->alpn_selected); | 1845 | free(S3I(s)->alpn_selected); |
1846 | 1846 | ||
1847 | explicit_bzero(S3I(s), sizeof(*S3I(s))); | 1847 | freezero(S3I(s), sizeof(*S3I(s))); |
1848 | free(S3I(s)); | 1848 | freezero(s->s3, sizeof(*s->s3)); |
1849 | |||
1850 | explicit_bzero(s->s3, sizeof(*s->s3)); | ||
1851 | free(s->s3); | ||
1852 | 1849 | ||
1853 | s->s3 = NULL; | 1850 | s->s3 = NULL; |
1854 | } | 1851 | } |