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>
This commit is contained in:
parent
7770a9dd6a
commit
dd76afff65
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue