Fix potential crash in ip-only address parsing code

remotes/origin/master-1.1.x
Gerardo Iglesias Galvan 15 years ago committed by Victor Julien
parent a56592e556
commit 5d85b0f7b7

@ -523,8 +523,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