Add missing arg to aad token request format string

This commit is contained in:
fifthdegree 2023-06-14 19:29:26 -04:00 committed by akallabeth
parent 18df3176e1
commit 80f357ddcb

View File

@ -416,7 +416,7 @@ static BOOL aad_send_token_request(rdpAad* aad, BIO* bio, const char* auth_code,
size_t req_body_len = 0; size_t req_body_len = 0;
size_t req_header_len = 0; size_t req_header_len = 0;
const int trc = winpr_asprintf(&req_body, &req_body_len, token_http_request_body, client_id, const int trc = winpr_asprintf(&req_body, &req_body_len, token_http_request_body, client_id,
auth_code, aad->kid, redirect_uri); auth_code, aad->hostname, aad->kid, redirect_uri);
if (trc < 0) if (trc < 0)
goto fail; goto fail;
const int trh = winpr_asprintf(&req_header, &req_header_len, token_http_request_header, trc); const int trh = winpr_asprintf(&req_header, &req_header_len, token_http_request_header, trc);