Null deref fixe for detect-engine-address.c

remotes/origin/master-1.0.x
William Metcalf 16 years ago committed by Victor Julien
parent b856e607c9
commit afa8a2b8ba

@ -637,6 +637,9 @@ static int DetectAddressParseString(DetectAddress *dd, char *str)
/* we dup so we can put a nul-termination in it later */
ip = ipdup;
if (ip == NULL) {
goto error;
}
/* handle the negation case */
if (ip[0] == '!') {

Loading…
Cancel
Save