|
|
|
@ -444,9 +444,6 @@ static int DetectAddressParseString(DetectAddress *dd, const char *str)
|
|
|
|
int r = 0;
|
|
|
|
int r = 0;
|
|
|
|
char ipstr[256];
|
|
|
|
char ipstr[256];
|
|
|
|
|
|
|
|
|
|
|
|
while (*str != '\0' && *str == ' ')
|
|
|
|
|
|
|
|
str++;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* shouldn't see 'any' here */
|
|
|
|
/* shouldn't see 'any' here */
|
|
|
|
BUG_ON(strcasecmp(str, "any") == 0);
|
|
|
|
BUG_ON(strcasecmp(str, "any") == 0);
|
|
|
|
|
|
|
|
|
|
|
|
@ -647,6 +644,9 @@ static int DetectAddressSetup(DetectAddressHead *gh, const char *s)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
SCLogDebug("gh %p, s %s", gh, s);
|
|
|
|
SCLogDebug("gh %p, s %s", gh, s);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
while (*s != '\0' && isspace(*s))
|
|
|
|
|
|
|
|
s++;
|
|
|
|
|
|
|
|
|
|
|
|
if (strcasecmp(s, "any") == 0) {
|
|
|
|
if (strcasecmp(s, "any") == 0) {
|
|
|
|
SCLogDebug("adding 0.0.0.0/0 and ::/0 as we\'re handling \'any\'");
|
|
|
|
SCLogDebug("adding 0.0.0.0/0 and ::/0 as we\'re handling \'any\'");
|
|
|
|
|
|
|
|
|
|
|
|
|