summaryrefslogtreecommitdiff
path: root/radsecproxy.c
diff options
context:
space:
mode:
authorvenaas <venaas>2007-06-03 19:40:51 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2007-06-03 19:40:51 +0000
commitef6b07988ab21375a0ec4dab26fae8c51bf38985 (patch)
tree027568358ad50d2708eb89b215ddfb0588598118 /radsecproxy.c
parent4efac9076b12153277464d2b4668ab7edf75a15a (diff)
tiny bug fix
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@120 e88ac4ed-0b26-0410-9574-a7f39faa03bf
Diffstat (limited to 'radsecproxy.c')
-rw-r--r--radsecproxy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/radsecproxy.c b/radsecproxy.c
index 3a84424..b766b2f 100644
--- a/radsecproxy.c
+++ b/radsecproxy.c
@@ -222,7 +222,7 @@ struct client *find_client(char type, struct sockaddr *addr, struct client *clie
for (res = c->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 c;
if (client)