]> git.ipfire.org Git - thirdparty/suricata.git/commit
commandline parsing: check optarg ptr before using it 853/head
authorVictor Julien <victor@inliniac.net>
Wed, 26 Feb 2014 11:41:15 +0000 (12:41 +0100)
committerVictor Julien <victor@inliniac.net>
Wed, 26 Feb 2014 11:41:15 +0000 (12:41 +0100)
commit9442dce451d2ffa1d1e87e6c4a10990b1e02d0fe
tree2264ad5a3d5a0f2caa11858b28eae1f0e2bb0884
parent9f2ce16ef369805f7ce03c4e33b2eb234220b681
commandline parsing: check optarg ptr before using it

Fixes:
** CID 1075221:  Dereference after null check  (FORWARD_NULL)
/src/suricata.c: 1344 in ParseCommandLine()

The reason it gave this warning is that in other paths using optarg
there was a check, so the checker assumed optarg can be NULL.
src/suricata.c