unbound/edns-subnet
Kostya d3f88d008f
edns-subnet: fix NULL_AFTER_DEREF on subnetmod (#1297)
Found by static analyzer svace.
Static analyzer message: Redundant comparison with a NULL value at subnetmod.c:236 for pointer 'sn_env->subnet_msg_cache',
which was dereferenced at slabhash.c:228 by passing as 1st parameter to function 'slabhash_setmarkdel' at subnetmod.c:235.

Moved usage of sn_env->subnet_msg_cache in slabhash_setmarkdel after checking.

Signed-off-by: Konstantin Kamanin <bewflast@gmail.com>
2025-06-19 16:24:21 +02:00
..
addrtree.c - Fix edns subnet so that scope 0 answers only match sourcemask 0 2022-08-02 14:13:55 +02:00
addrtree.h - Fix edns subnet so that scope 0 answers only match sourcemask 0 2022-08-02 14:13:55 +02:00
edns-subnet.c - Generalise inplace callback (de)registration 2017-04-06 13:13:06 +00:00
edns-subnet.h Fix typos 2021-11-13 16:56:15 +02:00
subnet-whitelist.c - Added domain name based ECS whitelist. 2017-06-08 14:44:55 +00:00
subnet-whitelist.h - Added domain name based ECS whitelist. 2017-06-08 14:44:55 +00:00
subnetmod.c edns-subnet: fix NULL_AFTER_DEREF on subnetmod (#1297) 2025-06-19 16:24:21 +02:00
subnetmod.h Call module init init again, and new function startup and destartup. 2024-07-01 16:10:07 +02:00