From 3feb8efa5d918fb774811b838ee8704f559d5ca6 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 6 Oct 2004 18:28:30 +0000 Subject: Update. 2004-10-06 Ulrich Drepper * resolv/res_mkquery.c (res_nmkquery): Reject randombits value if low 16 bits are zero. --- resolv/res_mkquery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'resolv') diff --git a/resolv/res_mkquery.c b/resolv/res_mkquery.c index 5b705b0..9825ae0 100644 --- a/resolv/res_mkquery.c +++ b/resolv/res_mkquery.c @@ -141,7 +141,7 @@ res_nmkquery(res_state statp, randombits = (tv.tv_sec << 8) ^ tv.tv_usec; #endif } - while (randombits == 0); + while ((randombits & 0xffff) == 0); statp->id = (statp->id + randombits) & 0xffff; #endif hp->opcode = op; -- cgit v1.1