44a1a2a273d498ac8d9334930150b4480a2fbe5c

In lib/roken/resolve.c, we find rk_dns_srv_order() which re-orders the results of an SRV RR lookup by the algorithm in RFC2782. We fix a bias in the random weight sorting by changing the order of operations when selecting rnd. rnd should be a non-zero random number less than the sum of the weights at a particular priority, but zero was included as a legitimate output thus biasing the selection process. rk_random() % sum is still biased as a 32 bit int modulo a number which doesn't divide 2^32 does not have a uniform distribution, but the bias should be small enough to live with for our purposes here.
Heimdal is a Kerberos 5 implementation. For information how to install see <http://www.h5l.org/compile.html>. There are briefer man pages for most of the commands. Bug reports and bugs are appreciated, see more under Bug reports in the manual on how we prefer them: <heimdal-bugs@h5l.org>. For more information see the web-page at <http://www.h5l.org/> or the mailing lists: heimdal-announce@sics.se low-volume announcement heimdal-discuss@sics.se high-volume discussion send a mail to heimdal-announce-request@sics.se and heimdal-discuss-request@sics.se respectively to subscribe.
Description
Languages
C
92.1%
Roff
2.8%
Shell
2.3%
Makefile
0.7%
M4
0.5%
Other
1.4%