summaryrefslogtreecommitdiff
path: root/usr.bin/openssl/rand.c
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2018-02-07 04:57:07 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2018-02-07 04:57:07 +0000
commit173489263120a98b6c445619b94bdd96db64c836 (patch)
tree8af8759b2d78fbb9f542287722d0b1c9f42970dc /usr.bin/openssl/rand.c
parentae9cf602566613d280301a05a36fd5772b209fef (diff)
Remove guards around *_free() calls since these functions handle NULL.
Diffstat (limited to 'usr.bin/openssl/rand.c')
-rw-r--r--usr.bin/openssl/rand.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/openssl/rand.c b/usr.bin/openssl/rand.c
index 04105bc46ec..6e4517ac0b6 100644
--- a/usr.bin/openssl/rand.c
+++ b/usr.bin/openssl/rand.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rand.c,v 1.11 2017/01/20 08:57:12 deraadt Exp $ */
+/* $OpenBSD: rand.c,v 1.12 2018/02/07 04:57:06 jsing Exp $ */
/* ====================================================================
* Copyright (c) 1998-2001 The OpenSSL Project. All rights reserved.
*
@@ -178,8 +178,7 @@ rand_main(int argc, char **argv)
err:
ERR_print_errors(bio_err);
- if (out)
- BIO_free_all(out);
+ BIO_free_all(out);
return (ret);
}