On Thu, Oct 14, 2010 at 4:47 PM, Gilles Chehade <gil...@openbsd.org> wrote:
> Dear tech@,
>
> eric@ has written an (awesome :p) asynchronous resolver that allows us to do
> non-blocking DNS lookups.
>

this dns code has a serious flaw.  you use arc4random to allocate request
IDs.  this is a bad decision, as you actually want a non-repeating property.
take a look how libc resolver copes with this:
http://www.openbsd.org/cgi-bin/cvsweb/src/lib/libc/net/res_random.c?rev=1.17

Reply via email to