diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2003-02-28 21:31:31 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2003-02-28 21:31:31 +0000 |
commit | 69f7e4e44751757c66f75b2e990cbc13f21b5131 (patch) | |
tree | 92d44afce38dc1436c076c129f050d8d900c8b2c | |
parent | 58079161621b9602b4fc2ceee93e9c8ced3be89a (diff) |
Fix a bug found by propolice on sparc64; Jan Johansson
-rw-r--r-- | kerberosIV/src/lib/roken/resolve.c | 2 | ||||
-rw-r--r-- | kerberosV/src/lib/roken/resolve.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/kerberosIV/src/lib/roken/resolve.c b/kerberosIV/src/lib/roken/resolve.c index 7d93caff61b..77ce5f5503d 100644 --- a/kerberosIV/src/lib/roken/resolve.c +++ b/kerberosIV/src/lib/roken/resolve.c @@ -453,7 +453,7 @@ dns_srv_order(struct dns_reply *r) headp = &(*tt)->next; sum -= (*tt)->u.srv->weight; *tt = NULL; - while(*ss == NULL) + while(ss < ee && *ss == NULL) ss++; } } diff --git a/kerberosV/src/lib/roken/resolve.c b/kerberosV/src/lib/roken/resolve.c index 7d93caff61b..77ce5f5503d 100644 --- a/kerberosV/src/lib/roken/resolve.c +++ b/kerberosV/src/lib/roken/resolve.c @@ -453,7 +453,7 @@ dns_srv_order(struct dns_reply *r) headp = &(*tt)->next; sum -= (*tt)->u.srv->weight; *tt = NULL; - while(*ss == NULL) + while(ss < ee && *ss == NULL) ss++; } } |