From dd76afff65075ce42f76513a94a467cda4ed5fa9 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Mon, 8 Oct 2018 13:15:59 +0300 Subject: [PATCH] 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 --- hs20/server/spp_server.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hs20/server/spp_server.c b/hs20/server/spp_server.c index c3681ee0c..d693317d4 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;