summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src/crypto/dsa/dsa_gen.c
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2015-07-15 18:34:37 +0000
committermiod <miod@openbsd.org>2015-07-15 18:34:37 +0000
commit0795439eafcf1997abaee1a064fd3b7d0617778d (patch)
tree8cb79a6dc87c0f2f22951c9c6d1d96522ad6be6c /lib/libssl/src/crypto/dsa/dsa_gen.c
parenttypo. (diff)
downloadwireguard-openbsd-0795439eafcf1997abaee1a064fd3b7d0617778d.tar.xz
wireguard-openbsd-0795439eafcf1997abaee1a064fd3b7d0617778d.zip
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/libssl/src/crypto/dsa/dsa_gen.c')
-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)