]> git.ipfire.org Git - thirdparty/suricata.git/commit
conf: fix potential use-after-free on error 730/head
authorVictor Julien <victor@inliniac.net>
Wed, 18 Dec 2013 11:23:50 +0000 (12:23 +0100)
committerVictor Julien <victor@inliniac.net>
Wed, 18 Dec 2013 11:23:50 +0000 (12:23 +0100)
commitb955ca7b867d0f7d45a365526c1fc568ea50cc5f
treed40dbff771d4c7ca1d65dfeaf0d12077ed3541d2
parent3714925d2bfc37387fd92f115529f0d6edc1ce44
conf: fix potential use-after-free on error

Coverity 1139544

If strdup would fail, 'node' was freed but it wasn't set to NULL. The
code then returned node. The caller would not detect there was an error
and use the freed pointer.
src/conf.c