The NAPTR records flags where not checked in case insensitive mode. Records with the 'S' flags where ignored ('s' was expected). Closes: FS#135 Reported-by: Inaki Baz Castillo ibc aliax net
@@ -1017,7 +1017,7 @@ char naptr_get_sip_proto(struct naptr_rdata* n)
proto=-1;
- if ((n->flags_len!=1) || (*n->flags!='s'))
+ if ((n->flags_len!=1) || ((*n->flags | 0x20 )!='s'))
return -1;
if (n->regexp_len!=0)