From 392cedd0a28f15b693c81c8b877ee3d74c122d42 Mon Sep 17 00:00:00 2001 From: David Benjamin Date: Thu, 5 Oct 2017 14:44:56 -0400 Subject: [PATCH] Fx DH_set0_pqg. Typo. Change-Id: Iab3e04339bb868fd6d247c6696f33f5b7150408d Reviewed-on: https://boringssl-review.googlesource.com/21184 Commit-Queue: David Benjamin Commit-Queue: Martin Kreichgauer Reviewed-by: Martin Kreichgauer CQ-Verified: CQ bot account: commit-bot@chromium.org --- crypto/dh/dh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/dh/dh.c b/crypto/dh/dh.c index 04e245e8..7b7b8335 100644 --- a/crypto/dh/dh.c +++ b/crypto/dh/dh.c @@ -167,7 +167,7 @@ int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g) { dh->q = q; } - if (g == NULL) { + if (g != NULL) { BN_free(dh->g); dh->g = g; }