summaryrefslogtreecommitdiffstats
path: root/crypto/dsa/dsa_lib.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2016-06-16 10:07:32 +0100
committerMatt Caswell <matt@openssl.org>2016-06-16 13:34:44 +0100
commitb84e12266f85156f58804ff94ea110890f13b52d (patch)
tree32de263358b118264aaf5e0c702cbc5f3637721c /crypto/dsa/dsa_lib.c
parentcf3404fcc77aaf592c95326cbdd25612a8af6878 (diff)
Fix the build and tests following constification of DH, DSA, RSA
Misc fixes following the constification of the DH, DSA and RSA getters. Reviewed-by: Stephen Henson <steve@openssl.org>
Diffstat (limited to 'crypto/dsa/dsa_lib.c')
-rw-r--r--crypto/dsa/dsa_lib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/dsa/dsa_lib.c b/crypto/dsa/dsa_lib.c
index 8146330a54..9c001d7b1b 100644
--- a/crypto/dsa/dsa_lib.c
+++ b/crypto/dsa/dsa_lib.c
@@ -269,9 +269,9 @@ int DSA_set0_pqg(DSA *d, BIGNUM *p, BIGNUM *q, BIGNUM *g)
/* If the fields p, q and g in d are NULL, the corresponding input
* parameters MUST be non-NULL.
*/
- if (d->p == NULL && p == NULL
- || d->q == NULL && q == NULL
- || d->g == NULL && g == NULL)
+ if ((d->p == NULL && p == NULL)
+ || (d->q == NULL && q == NULL)
+ || (d->g == NULL && g == NULL))
return 0;
if (p != NULL) {