aboutsummaryrefslogtreecommitdiff
path: root/external/unbound/iterator/iter_delegpt.c
diff options
context:
space:
mode:
Diffstat (limited to 'external/unbound/iterator/iter_delegpt.c')
-rw-r--r--external/unbound/iterator/iter_delegpt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/external/unbound/iterator/iter_delegpt.c b/external/unbound/iterator/iter_delegpt.c
index 1d84280d2..b212ec077 100644
--- a/external/unbound/iterator/iter_delegpt.c
+++ b/external/unbound/iterator/iter_delegpt.c
@@ -147,7 +147,9 @@ delegpt_find_addr(struct delegpt* dp, struct sockaddr_storage* addr,
{
struct delegpt_addr* p = dp->target_list;
while(p) {
- if(sockaddr_cmp_addr(addr, addrlen, &p->addr, p->addrlen)==0) {
+ if(sockaddr_cmp_addr(addr, addrlen, &p->addr, p->addrlen)==0
+ && ((struct sockaddr_in*)addr)->sin_port ==
+ ((struct sockaddr_in*)&p->addr)->sin_port) {
return p;
}
p = p->next_target;