]> The Tcpdump Group git mirrors - tcpdump/commit
instrument functions: Add a NULL check
authorFrancois-Xavier Le Bail <[email protected]>
Sat, 11 Mar 2023 08:47:07 +0000 (09:47 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Sat, 11 Mar 2023 08:47:07 +0000 (09:47 +0100)
commit7be9376fdf4fec1d178eca504184d6b030eb73a4
tree367ecd3d794a836bd374006ac3784057e50b3e9c
parent1b838e1c5b61c37abc712609e64925fcad0bc2a2
instrument functions: Add a NULL check

Same as in tcpslice to fix a Coverity issue.

The issue was:
Null pointer dereferences  (FORWARD_NULL)
Passing null pointer "func" to "strncmp", which dereferences it.
instrument-functions.c