diff options
| author | jsing <> | 2015-02-09 05:22:56 +0000 |
|---|---|---|
| committer | jsing <> | 2015-02-09 05:22:56 +0000 |
| commit | 44111c3c68252aa9db466727fb182b7b3c032efc (patch) | |
| tree | 2bc5bda99dcabb7d98abdec6060eac2dadd2ff2a /src/usr.bin/openssl/ciphers.c | |
| parent | 6759dc7e26a0b5d4f9817cbb8f3ccaefa6064a29 (diff) | |
| download | openbsd-44111c3c68252aa9db466727fb182b7b3c032efc.tar.gz openbsd-44111c3c68252aa9db466727fb182b7b3c032efc.tar.bz2 openbsd-44111c3c68252aa9db466727fb182b7b3c032efc.zip | |
Remember to zero the ciphers configuration.
Diffstat (limited to 'src/usr.bin/openssl/ciphers.c')
| -rw-r--r-- | src/usr.bin/openssl/ciphers.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/usr.bin/openssl/ciphers.c b/src/usr.bin/openssl/ciphers.c index 20daf16617..d0ea6311ac 100644 --- a/src/usr.bin/openssl/ciphers.c +++ b/src/usr.bin/openssl/ciphers.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ciphers.c,v 1.2 2015/02/09 01:15:28 jsing Exp $ */ | 1 | /* $OpenBSD: ciphers.c,v 1.3 2015/02/09 05:22:56 jsing Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> |
| 4 | * | 4 | * |
| @@ -68,7 +68,7 @@ struct option ciphers_options[] = { | |||
| 68 | .opt.value = &ciphers_config.verbose, | 68 | .opt.value = &ciphers_config.verbose, |
| 69 | .value = 2, | 69 | .value = 2, |
| 70 | }, | 70 | }, |
| 71 | {}, | 71 | { NULL }, |
| 72 | }; | 72 | }; |
| 73 | 73 | ||
| 74 | static void | 74 | static void |
| @@ -91,6 +91,8 @@ ciphers_main(int argc, char **argv) | |||
| 91 | int i, rv = 0; | 91 | int i, rv = 0; |
| 92 | char *desc; | 92 | char *desc; |
| 93 | 93 | ||
| 94 | memset(&ciphers_config, 0, sizeof(ciphers_config)); | ||
| 95 | |||
| 94 | if (options_parse(argc, argv, ciphers_options, &cipherlist, | 96 | if (options_parse(argc, argv, ciphers_options, &cipherlist, |
| 95 | NULL) != 0) { | 97 | NULL) != 0) { |
| 96 | ciphers_usage(); | 98 | ciphers_usage(); |
