Coverity 1038134 fix

Cleaned up error check. "ipdup" can only be non-NULL there, so remove check
that confused coverity.
pull/552/head
Victor Julien 13 years ago
parent ecd5c7573b
commit 27ea4232fe

@ -605,7 +605,6 @@ int DetectAddressParseString(DetectAddress *dd, char *str)
str++;
char *ipdup = SCStrdup(str);
if (unlikely(ipdup == NULL))
return -1;
SCLogDebug("str %s", str);
@ -765,8 +764,7 @@ int DetectAddressParseString(DetectAddress *dd, char *str)
return 0;
error:
if (ipdup)
SCFree(ipdup);
SCFree(ipdup);
return -1;
}

Loading…
Cancel
Save