]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix round-robin doesn't work with some Windows clients (from Ilya Bakulin).
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 15 May 2013 11:56:22 +0000 (11:56 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 15 May 2013 11:56:22 +0000 (11:56 +0000)
git-svn-id: file:///svn/unbound/trunk@2899 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
util/data/msgencode.c

index 88eac6c7c0a34ea96e35591864e940e177e8d048..bd5397ea7604e296b62d69581b280517c140a376 100644 (file)
@@ -1,3 +1,7 @@
+15 May 2013: Wouter
+       - Fix round-robin doesn't work with some Windows clients (from Ilya
+         Bakulin).
+
 3 May 2013: Wouter
        - update acx_nlnetlabs.m4 to v23, sleep w32 fix.
 
index 34f3b893666fd7edcbacfa63405550f5b601bcb3..ead8aba317c51bbf0880c9c2ba5422303b26bbfb 100644 (file)
@@ -658,8 +658,9 @@ reply_info_encode(struct query_info* qinfo, struct reply_info* rep,
                        return 0;
                }
        }
-       /* roundrobin offset. using query id for random number */
-       rr_offset = RRSET_ROUNDROBIN?id:0;
+       /* roundrobin offset. using query id for random number.  With ntohs
+        * for different roundrobins for sequential id client senders. */
+       rr_offset = RRSET_ROUNDROBIN?ntohs(id):0;
 
        /* insert answer section */
        if((r=insert_section(rep, rep->an_numrrsets, &ancount, buffer,