summaryrefslogtreecommitdiff
path: root/src/usr.bin/openssl/dh.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/dh.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/dh.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/usr.bin/openssl/dh.c b/src/usr.bin/openssl/dh.c
index eb51b4b12f..b8d4054e56 100644
--- a/src/usr.bin/openssl/dh.c
+++ b/src/usr.bin/openssl/dh.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: dh.c,v 1.9 2017/01/20 08:57:11 deraadt Exp $ */ 1/* $OpenBSD: dh.c,v 1.10 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 *
@@ -290,10 +290,8 @@ dh_main(int argc, char **argv)
290 290
291end: 291end:
292 BIO_free(in); 292 BIO_free(in);
293 if (out != NULL) 293 BIO_free_all(out);
294 BIO_free_all(out); 294 DH_free(dh);
295 if (dh != NULL)
296 DH_free(dh);
297 295
298 return (ret); 296 return (ret);
299} 297}