mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-02-01 11:19:27 -05:00
fix infra cache comparison.
git-svn-id: file:///svn/unbound/trunk@2570 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
e7282a291b
commit
8e62925ffb
2 changed files with 2 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
|||
13 December 2011: Wouter
|
||||
- iana portlist updated.
|
||||
- svn tag 1.4.14rc1
|
||||
- fix infra cache comparison.
|
||||
|
||||
5 December 2011: Wouter
|
||||
- Fix getaddrinfowithincludes on windows with fedora16 mingw32-gcc.
|
||||
|
|
|
|||
2
services/cache/infra.c
vendored
2
services/cache/infra.c
vendored
|
|
@ -67,7 +67,7 @@ infra_compfunc(void* key1, void* key2)
|
|||
struct infra_key* k2 = (struct infra_key*)key2;
|
||||
int r = sockaddr_cmp(&k1->addr, k1->addrlen, &k2->addr, k2->addrlen);
|
||||
if(r != 0)
|
||||
return 0;
|
||||
return r;
|
||||
if(k1->namelen != k2->namelen) {
|
||||
if(k1->namelen < k2->namelen)
|
||||
return -1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue