diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libssl/s3_lib.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/lib/libssl/s3_lib.c b/src/lib/libssl/s3_lib.c index 8d45e1f8c1..1fd077ec6e 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.138 2017/03/10 16:03:27 jsing Exp $ */ | 1 | /* $OpenBSD: s3_lib.c,v 1.139 2017/04/10 17:25:22 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 | * |
@@ -1834,9 +1834,7 @@ ssl3_free(SSL *s) | |||
1834 | DH_free(S3I(s)->tmp.dh); | 1834 | DH_free(S3I(s)->tmp.dh); |
1835 | EC_KEY_free(S3I(s)->tmp.ecdh); | 1835 | EC_KEY_free(S3I(s)->tmp.ecdh); |
1836 | 1836 | ||
1837 | if (S3I(s)->tmp.x25519 != NULL) | 1837 | freezero(S3I(s)->tmp.x25519, X25519_KEY_LENGTH); |
1838 | explicit_bzero(S3I(s)->tmp.x25519, X25519_KEY_LENGTH); | ||
1839 | free(S3I(s)->tmp.x25519); | ||
1840 | 1838 | ||
1841 | sk_X509_NAME_pop_free(S3I(s)->tmp.ca_names, X509_NAME_free); | 1839 | sk_X509_NAME_pop_free(S3I(s)->tmp.ca_names, X509_NAME_free); |
1842 | 1840 | ||
@@ -1870,9 +1868,7 @@ ssl3_clear(SSL *s) | |||
1870 | EC_KEY_free(S3I(s)->tmp.ecdh); | 1868 | EC_KEY_free(S3I(s)->tmp.ecdh); |
1871 | S3I(s)->tmp.ecdh = NULL; | 1869 | S3I(s)->tmp.ecdh = NULL; |
1872 | 1870 | ||
1873 | if (S3I(s)->tmp.x25519 != NULL) | 1871 | freezero(S3I(s)->tmp.x25519, X25519_KEY_LENGTH); |
1874 | explicit_bzero(S3I(s)->tmp.x25519, X25519_KEY_LENGTH); | ||
1875 | free(S3I(s)->tmp.x25519); | ||
1876 | S3I(s)->tmp.x25519 = NULL; | 1872 | S3I(s)->tmp.x25519 = NULL; |
1877 | 1873 | ||
1878 | rp = s->s3->rbuf.buf; | 1874 | rp = s->s3->rbuf.buf; |