]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Correctly recognize *-nsec3-optout-variant as "optout". 15850/head
authorMiod Vallat <miod.vallat@powerdns.com>
Wed, 16 Jul 2025 10:34:11 +0000 (12:34 +0200)
committerMiod Vallat <miod.vallat@powerdns.com>
Wed, 16 Jul 2025 10:35:10 +0000 (12:35 +0200)
Fixes: #15846
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
regression-tests/start-test-stop
regression-tests/tests/1dyndns-update-nsec3params-with-others/expected_result.lmdb-nsec3-optout-variant [deleted symlink]

index cd9c0e6c0bdf91f59035917fce6c6586d246c309..e99c0155d9effac003c22f614f9fd862bda0bfbe 100755 (executable)
@@ -290,7 +290,13 @@ fi
 optout=0
 pkcs11=0
 
-if [ "${context: -13}" = "-nsec3-optout" ]
+if [ "${context: -8}" = "-variant" ]
+then
+       subcontext=${context%-variant}
+else
+       subcontext=${context}
+fi
+if [ "${subcontext: -13}" = "-nsec3-optout" ]
 then
         optout=1
 fi
diff --git a/regression-tests/tests/1dyndns-update-nsec3params-with-others/expected_result.lmdb-nsec3-optout-variant b/regression-tests/tests/1dyndns-update-nsec3params-with-others/expected_result.lmdb-nsec3-optout-variant
deleted file mode 120000 (symlink)
index b9fe5f8..0000000
+++ /dev/null
@@ -1 +0,0 @@
-expected_result.nsec3
\ No newline at end of file