aboutsummaryrefslogtreecommitdiffstats
path: root/src/radius
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-09-07 15:25:04 (GMT)
committerJouni Malinen <j@w1.fi>2014-09-07 15:25:04 (GMT)
commitc9cd78e5a14bd09d160dd66d6c1c9fe19b548857 (patch)
tree9634e743c343ae752f1571633e6ebccb78e70e61 /src/radius
parent5e62cfdf75f771021e90417463a84468c4a9ce4a (diff)
downloadhostap-c9cd78e5a14bd09d160dd66d6c1c9fe19b548857.zip
hostap-c9cd78e5a14bd09d160dd66d6c1c9fe19b548857.tar.gz
hostap-c9cd78e5a14bd09d160dd66d6c1c9fe19b548857.tar.bz2
RADIUS server: Fix IPv6 radiusAuthClientAddress mask
Incorrect buffer was used when writing the IPv6 mask for RADIUS server MIB information (CID 72707). Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/radius')
-rw-r--r--src/radius/radius_server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/radius/radius_server.c b/src/radius/radius_server.c
index 24348a3..09024d1 100644
--- a/src/radius/radius_server.c
+++ b/src/radius/radius_server.c
@@ -1926,7 +1926,7 @@ int radius_server_get_mib(struct radius_server_data *data, char *buf,
if (inet_ntop(AF_INET6, &cli->addr6, abuf,
sizeof(abuf)) == NULL)
abuf[0] = '\0';
- if (inet_ntop(AF_INET6, &cli->mask6, abuf,
+ if (inet_ntop(AF_INET6, &cli->mask6, mbuf,
sizeof(mbuf)) == NULL)
mbuf[0] = '\0';
}