Skip to content

Commit 44b938a

Browse files
OIDC_CHILD: don't log 'post_data' content
as it might contain 'secret' Reviewed-by: Sumit Bose <[email protected]>
1 parent 16099f2 commit 44b938a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/oidc_child/oidc_child_curl.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,8 @@ static errno_t set_http_opts(CURL *curl_ctx, struct rest_ctx *rest_ctx,
256256
}
257257

258258
if (post_data != NULL) {
259-
DEBUG(SSSDBG_TRACE_ALL, "POST data: [%s].\n", post_data);
259+
/* Don't log 'post_data' content as it might contain 'secret' */
260+
DEBUG(SSSDBG_TRACE_ALL, "Setting POST data.\n");
260261
res = curl_easy_setopt(curl_ctx, CURLOPT_POSTFIELDS, post_data);
261262
if (res != CURLE_OK) {
262263
DEBUG(SSSDBG_OP_FAILURE, "Failed to add data to POST request.\n");

0 commit comments

Comments
 (0)