diff options
author | venaas <venaas> | 2007-06-05 09:23:17 +0000 |
---|---|---|
committer | venaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf> | 2007-06-05 09:23:17 +0000 |
commit | a68f9bc41cf926ec860bf5b0d28eed27377ee8cd (patch) | |
tree | f3aa85ed2c9d75940d29af8a727768d47f9e021c /radsecproxy.c | |
parent | 8c48ebc036602d224fc7474b4a3b1c244489a365 (diff) |
fixed one possibly serious IPv6 related bug
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@122 e88ac4ed-0b26-0410-9574-a7f39faa03bf
Diffstat (limited to 'radsecproxy.c')
-rw-r--r-- | radsecproxy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/radsecproxy.c b/radsecproxy.c index b766b2f..779e9f4 100644 --- a/radsecproxy.c +++ b/radsecproxy.c @@ -254,7 +254,7 @@ struct server *find_server(char type, struct sockaddr *addr, struct server *serv for (res = s->peer.addrinfo; res; res = res->ai_next) if ((a4 && res->ai_family == AF_INET && !memcmp(a4, &((struct sockaddr_in *)res->ai_addr)->sin_addr, 4)) || - (res->ai_family == AF_INET6 && + (sa6 && res->ai_family == AF_INET6 && !memcmp(&sa6->sin6_addr, &((struct sockaddr_in6 *)res->ai_addr)->sin6_addr, 16))) return s; if (server) |