Module: sip-router
Branch: master
Commit: 12dc828d8677da81de4c5198ec5862dd9ee1c477
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=12dc828…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Sat Jun 11 10:38:10 2011 +0200
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
---
resolve.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/resolve.c b/resolve.c
index a106315..782c15a 100644
--- a/resolve.c
+++ b/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;