aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_dl_group.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-03-25 17:07:48 -0400
committerJack Lloyd <[email protected]>2018-03-25 17:07:48 -0400
commit6747faa63553d80276fd6eb54523ddbc38153eaa (patch)
treec3a21790ab53d186ad463cb594a86cece080c9fb /src/tests/test_dl_group.cpp
parent0e8280ce89a4150ed09fae3f03584cce8c405951 (diff)
Fix sanitizer issue in DL_Group tests
Out of range enum
Diffstat (limited to 'src/tests/test_dl_group.cpp')
-rw-r--r--src/tests/test_dl_group.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/test_dl_group.cpp b/src/tests/test_dl_group.cpp
index 99724a7fb..2644d5e1a 100644
--- a/src/tests/test_dl_group.cpp
+++ b/src/tests/test_dl_group.cpp
@@ -47,7 +47,7 @@ class DL_Group_Tests final : public Test
result.test_throws("Bad generator param",
"Invalid argument DL_Group unknown PrimeType",
[]() {
- auto invalid_type = static_cast<Botan::DL_Group::PrimeType>(666);
+ auto invalid_type = static_cast<Botan::DL_Group::PrimeType>(9);
Botan::DL_Group dl(Test::rng(), invalid_type, 1024);
});