diff options
author | 2014-06-07 14:40:55 +0000 | |
---|---|---|
committer | 2014-06-07 14:40:55 +0000 | |
commit | 148aef0763d7561c5f6be93a67600c55b2771e1d (patch) | |
tree | 18b08e8e5889f9c3da15c269c199f1f8d7f1d6d1 /lib/libssl/s3_lib.c | |
parent | ssl3_free_digest_list() has its own NULL check. (diff) | |
download | wireguard-openbsd-148aef0763d7561c5f6be93a67600c55b2771e1d.tar.xz wireguard-openbsd-148aef0763d7561c5f6be93a67600c55b2771e1d.zip |
Remove another NULL check before a BIO_free().
Diffstat (limited to 'lib/libssl/s3_lib.c')
-rw-r--r-- | lib/libssl/s3_lib.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libssl/s3_lib.c b/lib/libssl/s3_lib.c index 3058b66a0d9..d6ceeee72d2 100644 --- a/lib/libssl/s3_lib.c +++ b/lib/libssl/s3_lib.c @@ -2377,10 +2377,10 @@ ssl3_clear(SSL *s) rlen = s->s3->rbuf.len; wlen = s->s3->wbuf.len; init_extra = s->s3->init_extra; - if (s->s3->handshake_buffer) { - BIO_free(s->s3->handshake_buffer); - s->s3->handshake_buffer = NULL; - } + + BIO_free(s->s3->handshake_buffer); + s->s3->handshake_buffer = NULL; + ssl3_free_digest_list(s); memset(s->s3, 0, sizeof *s->s3); |