diff options
author | David Benjamin <davidben@chromium.org> | 2016-02-02 22:14:36 +0300 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2016-02-02 22:18:27 +0300 |
commit | e66148a18fbf0883b615adeecb59661a80cdf4ab (patch) | |
tree | cc7949a5b645c5e2cdeb210754dd5626761c921a /ssl | |
parent | 6014ea624831b656fabdc2600c7b0d891a5ae8cc (diff) |
Drop dh->q in bssl_shim when -use-sparse-dh-prime is passed.
Otherwise it still thinks this is an RFC 5114 prime and kicks in the (now
incorrect) validity check.
Change-Id: Ie78514211927f1f2d2549958621cb7896f68b5ce
Reviewed-on: https://boringssl-review.googlesource.com/7050
Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/test/bssl_shim.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ssl/test/bssl_shim.cc b/ssl/test/bssl_shim.cc index 74674a49..dde25b44 100644 --- a/ssl/test/bssl_shim.cc +++ b/ssl/test/bssl_shim.cc @@ -747,6 +747,8 @@ static ScopedSSL_CTX SetupCtx(const TestConfig *config) { !BN_set_word(dh->g, 2)) { return nullptr; } + BN_free(dh->q); + dh->q = NULL; dh->priv_length = 0; } |