diff options
author | jsing <> | 2017-01-24 15:11:55 +0000 |
---|---|---|
committer | jsing <> | 2017-01-24 15:11:55 +0000 |
commit | f968287be4f1bfa9aa3d79cadf37d5b6f6190c87 (patch) | |
tree | dfdca4ac3bd4e7d5ce863e090dd20086228c7162 /src/lib/libssl/s3_clnt.c | |
parent | fa12c318978281dc18c0d5d00a977e1b12436659 (diff) | |
download | openbsd-f968287be4f1bfa9aa3d79cadf37d5b6f6190c87.tar.gz openbsd-f968287be4f1bfa9aa3d79cadf37d5b6f6190c87.tar.bz2 openbsd-f968287be4f1bfa9aa3d79cadf37d5b6f6190c87.zip |
BUF_MEM_free(), X509_STORE_free() and X509_VERIFY_PARAM_free() all check
for NULL, as does lh_free() - do not do the same from the caller.
Diffstat (limited to 'src/lib/libssl/s3_clnt.c')
-rw-r--r-- | src/lib/libssl/s3_clnt.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/libssl/s3_clnt.c b/src/lib/libssl/s3_clnt.c index ecd0f9e886..0600e7519e 100644 --- a/src/lib/libssl/s3_clnt.c +++ b/src/lib/libssl/s3_clnt.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: s3_clnt.c,v 1.173 2017/01/24 15:04:12 jsing Exp $ */ | 1 | /* $OpenBSD: s3_clnt.c,v 1.174 2017/01/24 15:11:55 jsing Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -520,10 +520,8 @@ ssl3_connect(SSL *s) | |||
520 | /* clean a few things up */ | 520 | /* clean a few things up */ |
521 | tls1_cleanup_key_block(s); | 521 | tls1_cleanup_key_block(s); |
522 | 522 | ||
523 | if (s->internal->init_buf != NULL) { | 523 | BUF_MEM_free(s->internal->init_buf); |
524 | BUF_MEM_free(s->internal->init_buf); | 524 | s->internal->init_buf = NULL; |
525 | s->internal->init_buf = NULL; | ||
526 | } | ||
527 | 525 | ||
528 | /* | 526 | /* |
529 | * If we are not 'joining' the last two packets, | 527 | * If we are not 'joining' the last two packets, |