aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2018-06-22 08:47:19 (GMT)
committerJouni Malinen <j@w1.fi>2018-06-22 16:37:18 (GMT)
commit72aad113c2f2e8cc526bcbca9f70765f56b34a02 (patch)
tree3393bcee505ef83080d8b262c09b13fe2d8e45b2 /src
parentd7b60f7a9e8959ecd450d00a8c9bba7595f37f10 (diff)
downloadhostap-72aad113c2f2e8cc526bcbca9f70765f56b34a02.zip
hostap-72aad113c2f2e8cc526bcbca9f70765f56b34a02.tar.gz
hostap-72aad113c2f2e8cc526bcbca9f70765f56b34a02.tar.bz2
RADIUS: Allow 0.0.0.0 to be used as wildard radius_das_client
This allows hostapd DAS to be configured to allow any DAC (with the matching shared secret) to send Disconnect-Request and CoA-Request packets. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Diffstat (limited to 'src')
-rw-r--r--src/radius/radius_das.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/radius/radius_das.c b/src/radius/radius_das.c
index 0a0cf8e..aaa3fc2 100644
--- a/src/radius/radius_das.c
+++ b/src/radius/radius_das.c
@@ -413,7 +413,8 @@ static void radius_das_receive(int sock, void *eloop_ctx, void *sock_ctx)
wpa_printf(MSG_DEBUG, "DAS: Received %d bytes from %s:%d",
len, abuf, from_port);
- if (das->client_addr.u.v4.s_addr != from.sin.sin_addr.s_addr) {
+ if (das->client_addr.u.v4.s_addr &&
+ das->client_addr.u.v4.s_addr != from.sin.sin_addr.s_addr) {
wpa_printf(MSG_DEBUG, "DAS: Drop message from unknown client");
return;
}