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.
(cherry picked from commit 54504ed13c)
pull/16146/head
parent
53fd78a060
commit
c5e7b77eeb
Loading…
Reference in New Issue