From 9e89140c97a5f5e8f09a14d8e45ffbfe9ec2b6b1 Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Fri, 11 Feb 2000 02:58:44 +0000 Subject: [PATCH] fix clamping problem for maximally bad goodness --- lib/dns/adb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dns/adb.c b/lib/dns/adb.c index 5bcf62db76..7b17cd8dcd 100644 --- a/lib/dns/adb.c +++ b/lib/dns/adb.c @@ -3796,7 +3796,7 @@ dns_adb_adjustgoodness(dns_adb_t *adb, dns_adbaddrinfo_t *addr, new_goodness = old_goodness + goodness_adjustment; } else { if (old_goodness < INT_MIN - goodness_adjustment) - new_goodness = INT_MAX; + new_goodness = INT_MIN; else new_goodness = old_goodness + goodness_adjustment; }