]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
HS 2.0 server: Do not perform subrem if not requested to
authorJouni Malinen <jouni@codeaurora.org>
Mon, 8 Oct 2018 10:15:59 +0000 (13:15 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 11 Oct 2018 09:12:30 +0000 (12:12 +0300)
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>
hs20/server/spp_server.c

index c3681ee0c99d3447e039226aaf0d9eaf7f44ec07..d693317d4b7f64b0080a5817177f48ac780c30b8 100644 (file)
@@ -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;