summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjsing <>2015-02-09 05:22:56 +0000
committerjsing <>2015-02-09 05:22:56 +0000
commit0806c8a26b4fd6c93113e242d4826f354fc60ee6 (patch)
tree2bc5bda99dcabb7d98abdec6060eac2dadd2ff2a /src
parentfa8c678d25f7746616d3af7f521b37f8f8e24e0c (diff)
downloadopenbsd-0806c8a26b4fd6c93113e242d4826f354fc60ee6.tar.gz
openbsd-0806c8a26b4fd6c93113e242d4826f354fc60ee6.tar.bz2
openbsd-0806c8a26b4fd6c93113e242d4826f354fc60ee6.zip
Remember to zero the ciphers configuration.
Diffstat (limited to 'src')
-rw-r--r--src/usr.bin/openssl/ciphers.c6
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
74static void 74static 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();