aboutsummaryrefslogtreecommitdiffstats
path: root/hs20
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2018-10-08 10:15:59 (GMT)
committerJouni Malinen <j@w1.fi>2018-10-11 09:12:30 (GMT)
commitdd76afff65075ce42f76513a94a467cda4ed5fa9 (patch)
treeac4aa4f0912e7c29e41549ca1466872177714603 /hs20
parent7770a9dd6a6741d600b57bda07ec5b46a3261be4 (diff)
downloadhostap-dd76afff65075ce42f76513a94a467cda4ed5fa9.zip
hostap-dd76afff65075ce42f76513a94a467cda4ed5fa9.tar.gz
hostap-dd76afff65075ce42f76513a94a467cda4ed5fa9.tar.bz2
HS 2.0 server: Do not perform subrem if not requested to
Instead of defaulting to machine remediation, reject a request to do subscription remediation if that has not been configured to be required. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Diffstat (limited to 'hs20')
-rw-r--r--hs20/server/spp_server.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/hs20/server/spp_server.c b/hs20/server/spp_server.c
index c3681ee..d693317 100644
--- a/hs20/server/spp_server.c
+++ b/hs20/server/spp_server.c
@@ -947,8 +947,10 @@ static xml_node_t * hs20_subscription_remediation(struct hs20_svc *ctx,
redirect_uri);
else if (type && strcmp(type, "policy") == 0)
ret = policy_remediation(ctx, user, realm, session_id, dmacc);
- else
+ else if (type && strcmp(type, "machine") == 0)
ret = machine_remediation(ctx, user, realm, session_id, dmacc);
+ else
+ ret = no_sub_rem(ctx, user, realm, session_id);
free(type);
return ret;