Fix potential crash in ip-only address parsing code.

remotes/origin/master-1.0.x
Victor Julien 15 years ago
parent 783c781301
commit 7d026e11ff

@ -502,8 +502,11 @@ int IPOnlyCIDRListParse(IPOnlyCIDRItem **gh, char *str)
{
SCLogDebug("gh %p, str %s", gh, str);
if (gh == NULL)
goto error;
*gh = IPOnlyCIDRListParse2(str, 0);
if (gh == NULL) {
if (*gh == NULL) {
SCLogDebug("DetectAddressParse2 returned null");
goto error;
}

Loading…
Cancel
Save