diff options
author | jsing <> | 2018-02-07 04:57:06 +0000 |
---|---|---|
committer | jsing <> | 2018-02-07 04:57:06 +0000 |
commit | c7d1d02db43b809b96238f8b557cfc2b8caa4b8a (patch) | |
tree | 1258fdeb45b6c2032685b30b591acc869df74b4c /src/usr.bin/openssl/rand.c | |
parent | 91513e7059067d6b8438c18b4a274825340acad0 (diff) | |
download | openbsd-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/rand.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/usr.bin/openssl/rand.c b/src/usr.bin/openssl/rand.c index 04105bc46e..6e4517ac0b 100644 --- a/src/usr.bin/openssl/rand.c +++ b/src/usr.bin/openssl/rand.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: rand.c,v 1.11 2017/01/20 08:57:12 deraadt Exp $ */ | 1 | /* $OpenBSD: rand.c,v 1.12 2018/02/07 04:57:06 jsing Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 1998-2001 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1998-2001 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
@@ -178,8 +178,7 @@ rand_main(int argc, char **argv) | |||
178 | 178 | ||
179 | err: | 179 | err: |
180 | ERR_print_errors(bio_err); | 180 | ERR_print_errors(bio_err); |
181 | if (out) | 181 | BIO_free_all(out); |
182 | BIO_free_all(out); | ||
183 | 182 | ||
184 | return (ret); | 183 | return (ret); |
185 | } | 184 | } |