commit | e03ddfae7ea7c27193d3f7c0eaa1d01704647d77 | [log] [tgz] |
---|---|---|
author | Ben Laurie <ben@openssl.org> | Thu Jan 07 19:15:59 1999 +0000 |
committer | Ben Laurie <ben@openssl.org> | Thu Jan 07 19:15:59 1999 +0000 |
tree | 7cf2e8444b222a3a52c4735e0415916bb81c4494 | |
parent | 6fa89f94c4452be54577eb071891d77c9e2abe16 [diff] [blame] |
Accept NULL in *_free.
diff --git a/ssl/s3_lib.c b/ssl/s3_lib.c index a523207..f15bb24 100644 --- a/ssl/s3_lib.c +++ b/ssl/s3_lib.c
@@ -456,6 +456,9 @@ void ssl3_free(s) SSL *s; { + if(s == NULL) + return; + ssl3_cleanup_key_block(s); if (s->s3->rbuf.buf != NULL) Free(s->s3->rbuf.buf);