From be7d5a2b93bcb243317b74b5b8c5fc923f1a9279 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Wed, 15 Jul 2015 18:34:38 +0000 Subject: Fix inverted test in previous. Commit message told what we intended, but we did not notice my fingers slipping. Noticed by bcook@ --- lib/libcrypto/dsa/dsa_gen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libcrypto/dsa/dsa_gen.c') diff --git a/lib/libcrypto/dsa/dsa_gen.c b/lib/libcrypto/dsa/dsa_gen.c index 342764397c7..7ddb7fec5e4 100644 --- a/lib/libcrypto/dsa/dsa_gen.c +++ b/lib/libcrypto/dsa/dsa_gen.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dsa_gen.c,v 1.21 2015/07/15 16:32:29 miod Exp $ */ +/* $OpenBSD: dsa_gen.c,v 1.22 2015/07/15 18:34:37 miod Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -138,7 +138,7 @@ dsa_builtin_paramgen(DSA *ret, size_t bits, size_t qbits, const EVP_MD *evpmd, seed_len = qsize; if (seed_in != NULL) memcpy(seed, seed_in, seed_len); - else if (seed_len == 0) + else if (seed_len != 0) goto err; if ((mont=BN_MONT_CTX_new()) == NULL) -- cgit v1.2.3