summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2014-06-07 14:40:56 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2014-06-07 14:40:56 +0000
commit09eb0761c8d7243f1ecd9af78bb13ddab0d30b0e (patch)
tree3e7be51c4e2d8ecd58afec8db796a583504492cc /lib
parent541f17aa0786842509821e76e2188e7cc941d600 (diff)
Remove another NULL check before a BIO_free().
Diffstat (limited to 'lib')
-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);