mirror of https://github.com/OISF/suricata
affinity: handle NULL set name from --set affinity path
Setting a cpu-affinity path with --set, like --set threading.cpu-affinity.worker-cpu-set.threads=28 creates an intermediate node under cpu-affinity whose val is NULL. With a legacy list format cpu-affinity, AffinitySetupLoadFromConfig() red the set name from the node val and passed it to GetAffinitySetName(), which then dereferenced the NULL pointer. Address it by simply checking for the NULL. Ticket: #6735.pull/16118/head
parent
7c669548cb
commit
54504ed13c
Loading…
Reference in New Issue