Cull the space before the address specified in address var variables.
pull/508/head
Anoop Saldanha 12 years ago
parent ab215c72f6
commit e2f4144d99

@ -600,6 +600,10 @@ int DetectAddressParseString(DetectAddress *dd, char *str)
char *ip2 = NULL;
char *mask = NULL;
int r = 0;
while (*str != '\0' && *str == ' ')
str++;
char *ipdup = SCStrdup(str);
if (unlikely(ipdup == NULL))

@ -106,6 +106,10 @@ static int IPOnlyCIDRItemParseSingle(IPOnlyCIDRItem *dd, char *str)
char *ip2 = NULL;
char *mask = NULL;
int r = 0;
while (*str != '\0' && *str == ' ')
str++;
char *ipdup = SCStrdup(str);
if (unlikely(ipdup == NULL))

Loading…
Cancel
Save