]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Suffix may be used before it is assigned a value
authorMark Andrews <marka@isc.org>
Mon, 26 Sep 2022 04:49:44 +0000 (14:49 +1000)
committerMark Andrews <marka@isc.org>
Wed, 28 Sep 2022 01:19:38 +0000 (11:19 +1000)
    CID 350722 (#5 of 7): Bad use of null-like value (FORWARD_NULL)
        12. invalid_operation: Invalid operation on null-like value suffix.
    145        r.authority.append(
    146            dns.rrset.from_text(
    147                "icky.ptang.zoop.boing." + suffix,
    148                1,
    149                IN,
    150                NS,
    151                "a.bit.longer.ns.name." + suffix,
    152            )
    153        )

(cherry picked from commit 432064f63c3541b3bb40d5505a420e47efd6d30d)

bin/tests/system/qmin/ans3/ans.py

index b2883a1b7d6c31e784bb9e6ba0eace4248f4a7ee..079c3d2cdacedd32f776b77864ea92263fd8c29e 100755 (executable)
@@ -57,6 +57,7 @@ def create_response(msg):
     qname = m.question[0].name.to_text()
     lqname = qname.lower()
     labels = lqname.split(".")
+    suffix = ""
 
     # get qtype
     rrtype = m.question[0].rdtype