HS 2.0 server: Event log entry on missing configuration for the realm
Make the error reason clearer in the event log for the case where the requested realm has not been configured. Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
parent
1192d5721b
commit
abed7978f6
1 changed files with 4 additions and 1 deletions
|
@ -1385,8 +1385,11 @@ static xml_node_t * hs20_subscription_registration(struct hs20_svc *ctx,
|
||||||
SUBSCRIPTION_REGISTRATION, mac_addr) < 0)
|
SUBSCRIPTION_REGISTRATION, mac_addr) < 0)
|
||||||
return NULL;
|
return NULL;
|
||||||
val = db_get_osu_config_val(ctx, realm, "signup_url");
|
val = db_get_osu_config_val(ctx, realm, "signup_url");
|
||||||
if (val == NULL)
|
if (!val) {
|
||||||
|
hs20_eventlog(ctx, NULL, realm, session_id,
|
||||||
|
"signup_url not configured in osu_config", NULL);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
spp_node = build_post_dev_data_response(ctx, &ns, session_id, "OK",
|
spp_node = build_post_dev_data_response(ctx, &ns, session_id, "OK",
|
||||||
NULL);
|
NULL);
|
||||||
|
|
Loading…
Reference in a new issue