diff options
author | 2014-06-07 14:37:35 +0000 | |
---|---|---|
committer | 2014-06-07 14:37:35 +0000 | |
commit | e51a8815943aa06057e71825213ca317d2e1ff83 (patch) | |
tree | dc6719bfc58f6652375ab4099fb2173779117b07 /lib/libssl/src/ssl/s3_enc.c | |
parent | BIO_free has an implicit NULL check, so do not bother checking for NULL (diff) | |
download | wireguard-openbsd-e51a8815943aa06057e71825213ca317d2e1ff83.tar.xz wireguard-openbsd-e51a8815943aa06057e71825213ca317d2e1ff83.zip |
ssl3_free_digest_list() has its own NULL check.
Diffstat (limited to 'lib/libssl/src/ssl/s3_enc.c')
-rw-r--r-- | lib/libssl/src/ssl/s3_enc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libssl/src/ssl/s3_enc.c b/lib/libssl/src/ssl/s3_enc.c index 7f1ad5a5b68..e8d96d53561 100644 --- a/lib/libssl/src/ssl/s3_enc.c +++ b/lib/libssl/src/ssl/s3_enc.c @@ -536,8 +536,7 @@ void ssl3_init_finished_mac(SSL *s) { BIO_free(s->s3->handshake_buffer); - if (s->s3->handshake_dgst) - ssl3_free_digest_list(s); + ssl3_free_digest_list(s); s->s3->handshake_buffer = BIO_new(BIO_s_mem()); (void)BIO_set_close(s->s3->handshake_buffer, BIO_CLOSE); @@ -547,7 +546,8 @@ void ssl3_free_digest_list(SSL *s) { int i; - if (!s->s3->handshake_dgst) + + if (s->s3->handshake_dgst == NULL) return; for (i = 0; i < SSL_MAX_DIGEST; i++) { if (s->s3->handshake_dgst[i]) |