summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2015-07-15 18:34:38 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2015-07-15 18:34:38 +0000
commit989b23caffe3f8aae9242bd677f6787bd649e341 (patch)
treea5f6291511c7b0e09dfc025fe6c8c9c9e9d7df77 /lib
parent3c2ff954ac12f352e692bc54052f6ef8555a7189 (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')
-rw-r--r--lib/libssl/src/crypto/dsa/dsa_gen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libssl/src/crypto/dsa/dsa_gen.c b/lib/libssl/src/crypto/dsa/dsa_gen.c
index 342764397c7..7ddb7fec5e4 100644
--- a/lib/libssl/src/crypto/dsa/dsa_gen.c
+++ b/lib/libssl/src/crypto/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)