]> git.ipfire.org Git - thirdparty/pdns.git/commit
Pass an explicit RecordsRWTransaction to writeNSEC3RecordPair. 15764/head
authorMiod Vallat <miod.vallat@powerdns.com>
Tue, 1 Jul 2025 19:29:56 +0000 (21:29 +0200)
committerMiod Vallat <miod.vallat@powerdns.com>
Wed, 2 Jul 2025 04:11:39 +0000 (06:11 +0200)
commit77e0a89ad55fe7fbd82aac26d0447df528b84ca2
treeb11038bb56677e9fdf10c65290138702372b608b
parentf7945074cf2712bade2c6a02d443aeaae7242dd6
Pass an explicit RecordsRWTransaction to writeNSEC3RecordPair.

Otherwise it would use d_rwtxn, which could be nullptr sometimes if
invoked invoked from updateDNSSECOrderNameAndAuth.

Regression introduced in 91df390a5583bfacb5fb7e646c03916da8afc477, reported
by Coverity.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
modules/lmdbbackend/lmdbbackend.cc
modules/lmdbbackend/lmdbbackend.hh