about summary refs log tree commit diff
path: root/resolv/res_mkquery.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-10-06 18:28:30 +0000
committerUlrich Drepper <drepper@redhat.com>2004-10-06 18:28:30 +0000
commit3feb8efa5d918fb774811b838ee8704f559d5ca6 (patch)
treef12d11f12dec535b338d94fb2d64de4f87da4a82 /resolv/res_mkquery.c
parentc56da3a39b4da2cd4226e3ad937d48cc4c988149 (diff)
downloadglibc-3feb8efa5d918fb774811b838ee8704f559d5ca6.tar.gz
glibc-3feb8efa5d918fb774811b838ee8704f559d5ca6.tar.xz
glibc-3feb8efa5d918fb774811b838ee8704f559d5ca6.zip
Update.
2004-10-06  Ulrich Drepper  <drepper@redhat.com>

	* resolv/res_mkquery.c (res_nmkquery): Reject randombits value if
	low 16 bits are zero.
Diffstat (limited to 'resolv/res_mkquery.c')
-rw-r--r--resolv/res_mkquery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/resolv/res_mkquery.c b/resolv/res_mkquery.c
index 5b705b0e8b..9825ae0fa3 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;