Revert mistake in previous changeset
authorMikael Berthe <mikael@lilotux.net>
Sun, 04 Dec 2011 15:32:11 +0100
changeset 625 632940b9170f
parent 624 a94013a4555d
child 626 2e32411800ef
child 627 7e2159294505
Revert mistake in previous changeset
loudmouth/lm-resolver.c
--- a/loudmouth/lm-resolver.c	Sun Dec 04 13:57:00 2011 +0100
+++ b/loudmouth/lm-resolver.c	Sun Dec 04 15:32:11 2011 +0100
@@ -477,15 +477,14 @@
     /* Parse the answers */
     while (ancount-- > 0 && (len = dn_expand (srv, end, pos, name, 255)) >= 0) {
         /* Ignore the initial string */
-        uint16_t pref, port;
-        /* uint16_t weight; */
+        uint16_t pref, weight, port;
 
         g_assert (len >= 0);
         pos += len;
         /* Ignore type, ttl, class and dlen */
         pos += 10;
         GETSHORT (pref, pos);
-        /* GETSHORT (weight, pos); */
+        GETSHORT (weight, pos);
         GETSHORT (port, pos);
 
         len = dn_expand (srv, end, pos, name, 255);