]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Fix regression to dns resolve in sofia. It will make sofia and compiler happy
authorMarc Olivier Chouinard <mochouinard@moctel.com>
Mon, 25 Apr 2011 19:53:54 +0000 (15:53 -0400)
committerMarc Olivier Chouinard <mochouinard@moctel.com>
Mon, 25 Apr 2011 19:53:54 +0000 (15:53 -0400)
libs/sofia-sip/libsofia-sip-ua/sresolv/sres.c

index d719a68b90815a33d382ae2e441ff23e9d832a22..ceb7d0f601442e9fd3ed6a4edfaab3487b608ec9 100644 (file)
@@ -3632,10 +3632,14 @@ sres_decode_msg(sres_resolver_t *res,
    * for the side effects in m */
   for (i = 0; i < m->m_qdcount; i++) {
     char name[1024];
-    //uint16_t qtype, qclass;
+    uint16_t qtype, qclass;
     m_get_domain(name, sizeof(name), m, 0); /* Query domain */
-    //qtype = m_get_uint16(m);  /* Query type */
-    //qclass = m_get_uint16(m); /* Query class */
+    qtype = m_get_uint16(m);  /* Query type */
+    qclass = m_get_uint16(m); /* Query class */
+    if (qtype && qclass) {
+      /* XXX: never mind these useless check, this is done to make compiler happy about unused value */
+    }
+
   }
 
   if (m->m_error) {