diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2014-08-27 15:54:03 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2014-08-27 15:54:03 +0000 |
commit | a20219d31eaa28a86e9355d6f73b15baf18d50b3 (patch) | |
tree | 407fddc67fbcb679876c6336de5106192c9f92e5 /usr.bin | |
parent | 8a483ae892bfad4b34c4e4d72ae1ce0012dd315b (diff) |
Reset the config struct before calling options_parse(), otherwise config
options from the previous run stick in interactive mode.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/openssl/rand.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/openssl/rand.c b/usr.bin/openssl/rand.c index 61c7013340f..cfb8d763b05 100644 --- a/usr.bin/openssl/rand.c +++ b/usr.bin/openssl/rand.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rand.c,v 1.2 2014/08/27 14:59:44 jsing Exp $ */ +/* $OpenBSD: rand.c,v 1.3 2014/08/27 15:54:02 jsing Exp $ */ /* ==================================================================== * Copyright (c) 1998-2001 The OpenSSL Project. All rights reserved. * @@ -122,6 +122,8 @@ rand_main(int argc, char **argv) int i, r; BIO *out = NULL; + memset(&rand_config, 0, sizeof(rand_config)); + if (options_parse(argc, argv, rand_options, &num_bytes) != 0) { rand_usage(); return (1); |