Browse Source

dns: case insensitive check for NAPTR record flags

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
Andrei Pelinescu-Onciul 14 years ago
parent
commit
12dc828d86
1 changed files with 1 additions and 1 deletions
  1. 1 1
      resolve.c

+ 1 - 1
resolve.c

@@ -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)
 		return -1;