summaryrefslogtreecommitdiffstats
path: root/lib/libssl/s3_lib.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2014-06-07 14:40:55 +0000
committerjsing <jsing@openbsd.org>2014-06-07 14:40:55 +0000
commit148aef0763d7561c5f6be93a67600c55b2771e1d (patch)
tree18b08e8e5889f9c3da15c269c199f1f8d7f1d6d1 /lib/libssl/s3_lib.c
parentssl3_free_digest_list() has its own NULL check. (diff)
downloadwireguard-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.c8
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);