(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:
@@ -453,7 +453,7 @@ dns_srv_order(struct dns_reply *r)
|
|||||||
headp = &(*tt)->next;
|
headp = &(*tt)->next;
|
||||||
sum -= (*tt)->u.srv->weight;
|
sum -= (*tt)->u.srv->weight;
|
||||||
*tt = NULL;
|
*tt = NULL;
|
||||||
while(*ss == NULL)
|
while(ss < ee && *ss == NULL)
|
||||||
ss++;
|
ss++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user