diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2015-07-15 18:34:38 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2015-07-15 18:34:38 +0000 |
commit | be7d5a2b93bcb243317b74b5b8c5fc923f1a9279 (patch) | |
tree | 05f8a996680e14d87586cbfa493d7ba18d7d8a51 /lib/libcrypto/dsa/dsa_gen.c | |
parent | 28ade89e30cb0b7dfc59d87028fed14d7458d943 (diff) |
Fix inverted test in previous. Commit message told what we intended, but
we did not notice my fingers slipping. Noticed by bcook@
Diffstat (limited to 'lib/libcrypto/dsa/dsa_gen.c')
-rw-r--r-- | lib/libcrypto/dsa/dsa_gen.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) |