summaryrefslogtreecommitdiff
path: root/src/usr.bin/openssl/s_time.c
diff options
context:
space:
mode:
authorjsing <>2018-02-07 04:57:06 +0000
committerjsing <>2018-02-07 04:57:06 +0000
commitc7d1d02db43b809b96238f8b557cfc2b8caa4b8a (patch)
tree1258fdeb45b6c2032685b30b591acc869df74b4c /src/usr.bin/openssl/s_time.c
parent91513e7059067d6b8438c18b4a274825340acad0 (diff)
downloadopenbsd-c7d1d02db43b809b96238f8b557cfc2b8caa4b8a.tar.gz
openbsd-c7d1d02db43b809b96238f8b557cfc2b8caa4b8a.tar.bz2
openbsd-c7d1d02db43b809b96238f8b557cfc2b8caa4b8a.zip
Remove guards around *_free() calls since these functions handle NULL.
Diffstat (limited to '')
-rw-r--r--src/usr.bin/openssl/s_time.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/usr.bin/openssl/s_time.c b/src/usr.bin/openssl/s_time.c
index a533679776..e8e8a273a7 100644
--- a/src/usr.bin/openssl/s_time.c
+++ b/src/usr.bin/openssl/s_time.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: s_time.c,v 1.21 2018/02/06 02:40:29 tb Exp $ */ 1/* $OpenBSD: s_time.c,v 1.22 2018/02/07 04:57:06 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 *
@@ -473,8 +473,7 @@ next:
473 473
474 ret = 0; 474 ret = 0;
475end: 475end:
476 if (scon != NULL) 476 SSL_free(scon);
477 SSL_free(scon);
478 477
479 if (tm_ctx != NULL) { 478 if (tm_ctx != NULL) {
480 SSL_CTX_free(tm_ctx); 479 SSL_CTX_free(tm_ctx);