TSIG spec contains colon too

This commit is contained in:
Willem Toorop 2016-06-01 17:00:05 +02:00
parent a100aff4de
commit 3af8a917a2
1 changed files with 2 additions and 1 deletions

View File

@ -382,7 +382,8 @@ ipaddr_dict(getdns_context *context, char *ipstr)
p = c;
}
}
} else if ((br = strchr(ipstr, '.')) && ((c = strchr(br + 1, ':'))))
} else if ((br = strchr(ipstr, '.')) && (c = strchr(br + 1, ':'))
&& (T == NULL || c < T))
p = c;
else if ((*ipstr == '*') && (c = strchr(ipstr+1, ':')))