]> git.ipfire.org Git - thirdparty/bind9.git/commit
Don't perform arithmetic on NULL pointers
authorMark Andrews <marka@isc.org>
Tue, 10 Jan 2023 06:15:09 +0000 (17:15 +1100)
committerMark Andrews <marka@isc.org>
Tue, 10 Jan 2023 06:45:51 +0000 (17:45 +1100)
commit2a9300a3bcd2c2cb5027e3435c53d2b8d94d72fd
treed366866beb3dd6918a31f46cd1b4699c81a61e64
parent802f700d5a5e437258eec83f9cc0f39a87e18475
Don't perform arithmetic on NULL pointers

When node is NULL when calling getparent() et al. they return NULL
but performing arithmetic on the NULL pointer is undefined.  Check
if 'node' or 'header' is NULL and skip the adjustment.
lib/dns/rbt.c