summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2003-02-28 21:31:31 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2003-02-28 21:31:31 +0000
commit69f7e4e44751757c66f75b2e990cbc13f21b5131 (patch)
tree92d44afce38dc1436c076c129f050d8d900c8b2c
parent58079161621b9602b4fc2ceee93e9c8ced3be89a (diff)
Fix a bug found by propolice on sparc64; Jan Johansson
-rw-r--r--kerberosIV/src/lib/roken/resolve.c2
-rw-r--r--kerberosV/src/lib/roken/resolve.c2
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++;
}
}