Files
heimdal/lib/roken
Roland C. Dowdeswell 44a1a2a273 Fix bias in ordering SRV RR results by weight.
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.
2016-11-10 04:45:07 -05:00
..
2014-08-22 21:23:30 -07:00
2014-08-22 20:57:24 -07:00
2014-08-22 20:57:24 -07:00
2016-02-16 20:49:33 -06:00
2008-09-13 08:53:55 +00:00
2009-11-24 21:42:02 -08:00
2013-08-19 10:21:23 -04:00
2009-11-24 21:42:02 -08:00
2011-05-21 11:57:31 -07:00
2009-11-24 21:42:02 -08:00
2016-02-16 20:49:29 -06:00
2015-04-14 11:27:23 -05:00
2011-05-21 11:57:31 -07:00
2009-11-24 21:42:02 -08:00
2009-08-18 13:06:05 +02:00
2011-04-29 20:25:05 -07:00
2011-05-21 11:57:31 -07:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2009-11-26 01:57:11 -05:00
2011-05-21 11:57:31 -07:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2011-05-21 11:57:31 -07:00
2009-11-24 21:42:02 -08:00
2014-04-25 02:42:17 +02:00
2010-08-20 13:04:06 -04:00
2016-02-28 20:34:26 -05:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2011-05-21 11:57:31 -07:00
2011-05-21 11:57:31 -07:00
2011-05-21 11:57:31 -07:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2010-11-24 09:43:04 +00:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2009-01-25 00:30:37 +00:00
2011-06-14 21:57:34 -07:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2010-08-20 13:03:40 -04:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2015-03-24 11:50:00 -05:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2015-03-05 17:06:20 +00:00
2008-09-13 08:53:55 +00:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2015-04-14 23:03:07 +00:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2009-01-25 00:30:37 +00:00
2013-11-17 12:48:41 +01:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2011-05-21 11:57:31 -07:00
2015-04-13 08:38:14 +01:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2011-05-21 11:57:31 -07:00
2010-06-01 10:46:57 -07:00
2012-06-08 17:57:02 +02:00
2016-02-16 20:49:33 -06:00
2015-04-21 21:22:15 -04:00
2013-05-07 16:47:45 -07:00
2011-05-21 11:57:31 -07:00
2009-11-24 21:42:02 -08:00
2010-05-30 12:41:06 -07:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2014-02-23 23:24:48 -05:00
2009-09-07 21:24:36 -07:00
2015-05-20 11:05:38 -04:00
2011-05-21 11:57:31 -07:00
2008-09-13 09:21:03 +00:00
2011-05-21 11:57:31 -07:00
2012-01-17 12:10:14 -06:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2010-06-01 10:25:01 -07:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2011-05-21 11:57:31 -07:00
2009-11-24 21:42:02 -08:00
2011-05-21 11:57:31 -07:00
2009-01-25 00:30:37 +00:00
2009-01-25 00:30:37 +00:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2015-04-21 21:14:54 -04:00
2009-11-24 21:42:02 -08:00
2011-05-21 11:57:31 -07:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2010-05-30 12:41:06 -07:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2009-01-25 00:30:37 +00:00
2009-11-24 21:42:02 -08:00
2009-11-24 21:42:02 -08:00
2012-07-20 09:40:22 -04:00
2009-11-24 21:42:02 -08:00
2008-09-13 09:21:03 +00:00
2009-11-24 21:42:02 -08:00