(dns_srv_order): make sure of not reading after the array

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10729 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
2001-09-20 09:13:45 +00:00
parent 7827dfd3ad
commit d7007afdea

View File

@@ -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++;
}
}