]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix a bug in expireheader() call arguments order
authorAram Sargsyan <aram@isc.org>
Thu, 2 May 2024 08:33:51 +0000 (08:33 +0000)
committerAram Sargsyan <aram@isc.org>
Thu, 2 May 2024 08:38:35 +0000 (08:38 +0000)
The expireheader() call in the expire_ttl_headers() function
is erroneous as it passes the 'nlocktypep' and 'tlocktypep'
arguments in a wrong order, which then causes an assertion
failure.

Fix the order of the arguments so it corresponds to the function's
prototype.

lib/dns/qpcache.c

index 2c3eaed3988c101936e4c7062817026e983b7429..1a03944bb7c5e5c55ed4226db1158abf93a6ad68 100644 (file)
@@ -4415,7 +4415,7 @@ expire_ttl_headers(qpcache_t *qpdb, unsigned int locknum,
                        return;
                }
 
-               expireheader(header, tlocktypep, nlocktypep,
+               expireheader(header, nlocktypep, tlocktypep,
                             dns_expire_ttl DNS__DB_FLARG_PASS);
        }
 }