malmond / rpms / unbound

Forked from rpms/unbound 3 years ago
Clone

Blame SOURCES/unbound-1.4.20-roundrobin.patch

4fd01f
diff -Naur unbound-1.4.20-orig/util/data/msgencode.c unbound-1.4.20/util/data/msgencode.c
4fd01f
--- unbound-1.4.20-orig/util/data/msgencode.c	2012-04-10 05:16:39.000000000 -0400
4fd01f
+++ unbound-1.4.20/util/data/msgencode.c	2013-05-21 15:47:01.435609420 -0400
4fd01f
@@ -659,7 +659,7 @@
4fd01f
 		}
4fd01f
 	}
4fd01f
 	/* roundrobin offset. using query id for random number */
4fd01f
-	rr_offset = RRSET_ROUNDROBIN?id:0;
4fd01f
+	rr_offset = RRSET_ROUNDROBIN ? ntohs(id) : 0;
4fd01f
 
4fd01f
 	/* insert answer section */
4fd01f
 	if((r=insert_section(rep, rep->an_numrrsets, &ancount, buffer,