[Freeswitch-trunk] [commit] r13915 - in freeswitch/trunk/libs/sofia-sip: . s2check

FreeSWITCH SVN mikej at freeswitch.org
Tue Jun 23 12:44:23 PDT 2009


Author: mikej
Date: Tue Jun 23 14:44:22 2009
New Revision: 13915

Log:
Tue Jun 23 09:59:55 CDT 2009  Pekka Pessi <first.last at nokia.com>
  * s2dns.c: return CNAME as answer
  Ignore-this: 1beaf31e2a72f2841a097a8d2dea317
  
  Previously, CNAME was returned as an extra record, not as an answer.



Modified:
   freeswitch/trunk/libs/sofia-sip/.update
   freeswitch/trunk/libs/sofia-sip/s2check/s2dns.c

Modified: freeswitch/trunk/libs/sofia-sip/.update
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/.update	(original)
+++ freeswitch/trunk/libs/sofia-sip/.update	Tue Jun 23 14:44:22 2009
@@ -1 +1 @@
-Wed Jun 10 11:14:52 EDT 2009
+Tue Jun 23 14:43:15 CDT 2009

Modified: freeswitch/trunk/libs/sofia-sip/s2check/s2dns.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/s2check/s2dns.c	(original)
+++ freeswitch/trunk/libs/sofia-sip/s2check/s2dns.c	Tue Jun 23 14:44:22 2009
@@ -600,7 +600,9 @@
 
     atype = va_arg(va, unsigned);
 
-    if (atype == qtype)
+    if (arcount == 0 &&
+	(atype == qtype || atype == sres_type_cname) &&
+	strcmp(qdomain, domain) == 0)
       ancount++;
     else
       arcount++;
@@ -663,4 +665,3 @@
 
   va_end(va);
 }
-



More information about the Freeswitch-trunk mailing list