From 74f5887007f45401e6a8933d7da96ddef02f9940 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Sun, 3 Nov 2002 14:04:05 +0000 Subject: Patch from "Cho, Seong-Myun" to limit things to the lower 16 bits of 'id'. --- libc/inet/resolv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libc') diff --git a/libc/inet/resolv.c b/libc/inet/resolv.c index 62b091770..e6ac9d9ce 100644 --- a/libc/inet/resolv.c +++ b/libc/inet/resolv.c @@ -641,7 +641,9 @@ int __dns_lookup(const char *name, int type, int nscount, char **nsip, /* Mess with globals while under lock */ LOCK; - h.id = ++id; + ++id; + id &= 0xffff; + h.id = id; dns = nsip[ns]; UNLOCK; -- cgit v1.2.3