From 0806c8a26b4fd6c93113e242d4826f354fc60ee6 Mon Sep 17 00:00:00 2001 From: jsing <> Date: Mon, 9 Feb 2015 05:22:56 +0000 Subject: Remember to zero the ciphers configuration. --- src/usr.bin/openssl/ciphers.c | 6 ++++-- 1 file 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 @@ -/* $OpenBSD: ciphers.c,v 1.2 2015/02/09 01:15:28 jsing Exp $ */ +/* $OpenBSD: ciphers.c,v 1.3 2015/02/09 05:22:56 jsing Exp $ */ /* * Copyright (c) 2014 Joel Sing * @@ -68,7 +68,7 @@ struct option ciphers_options[] = { .opt.value = &ciphers_config.verbose, .value = 2, }, - {}, + { NULL }, }; static void @@ -91,6 +91,8 @@ ciphers_main(int argc, char **argv) int i, rv = 0; char *desc; + memset(&ciphers_config, 0, sizeof(ciphers_config)); + if (options_parse(argc, argv, ciphers_options, &cipherlist, NULL) != 0) { ciphers_usage(); -- cgit v1.2.3-55-g6feb