Date: Tue, 11 Nov 2014 23:05:44 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 194954] New: [patch] [local_unbound] forward or stub addresses with same address but different port number are not tried Message-ID: <bug-194954-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194954 Bug ID: 194954 Summary: [patch] [local_unbound] forward or stub addresses with same address but different port number are not tried Product: Base System Version: 10.0-RELEASE Hardware: Any URL: https://forums.freebsd.org/threads/failover-and-load-b alancing-dns-queries-with-unbound.48872/#post-273471 OS: Any Status: Needs Triage Severity: Affects Some People Priority: Normal Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: arabesc@bk.ru Bug is confirmed by W.C.A. Wijngaards, he has provided a fix: Index: iterator/iter_delegpt.c =================================================================== - --- iterator/iter_delegpt.c (revision 3256) +++ iterator/iter_delegpt.c (working copy) @@ -147,7 +147,9 @@ { 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; -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-194954-8>