From: Wouter Wijngaards Date: Wed, 15 May 2013 11:56:22 +0000 (+0000) Subject: - Fix round-robin doesn't work with some Windows clients (from Ilya Bakulin). X-Git-Tag: release-1.4.21rc1~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a3efd5ea94edd8c7220d51a63e8ac640087daa8;p=thirdparty%2Funbound.git - Fix round-robin doesn't work with some Windows clients (from Ilya Bakulin). git-svn-id: file:///svn/unbound/trunk@2899 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/doc/Changelog b/doc/Changelog index 88eac6c7c..bd5397ea7 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -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. diff --git a/util/data/msgencode.c b/util/data/msgencode.c index 34f3b8936..ead8aba31 100644 --- a/util/data/msgencode.c +++ b/util/data/msgencode.c @@ -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,