diff options
| author | 2014-06-07 14:35:31 +0000 | |
|---|---|---|
| committer | 2014-06-07 14:35:31 +0000 | |
| commit | 73c984695c120b2104b8032d74e4a7dca76f90fa (patch) | |
| tree | 48c7e0738084198b2816ed8948806f9766075186 /lib/libssl/src/ssl/s3_enc.c | |
| parent | ssl3_release_{read,write}_buffer() handle being called with NULL buffers, (diff) | |
| download | wireguard-openbsd-73c984695c120b2104b8032d74e4a7dca76f90fa.tar.xz wireguard-openbsd-73c984695c120b2104b8032d74e4a7dca76f90fa.zip | |
BIO_free has an implicit NULL check, so do not bother checking for NULL
before calling it.
Diffstat (limited to 'lib/libssl/src/ssl/s3_enc.c')
| -rw-r--r-- | lib/libssl/src/ssl/s3_enc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libssl/src/ssl/s3_enc.c b/lib/libssl/src/ssl/s3_enc.c index f3c641849a1..7f1ad5a5b68 100644 --- a/lib/libssl/src/ssl/s3_enc.c +++ b/lib/libssl/src/ssl/s3_enc.c @@ -535,8 +535,7 @@ ssl3_enc(SSL *s, int send) void ssl3_init_finished_mac(SSL *s) { - if (s->s3->handshake_buffer) - BIO_free(s->s3->handshake_buffer); + BIO_free(s->s3->handshake_buffer); if (s->s3->handshake_dgst) ssl3_free_digest_list(s); s->s3->handshake_buffer = BIO_new(BIO_s_mem()); |
