Skip to content

Commit 6a0b5f6

Browse files
committed
code: check for the OIDCPreservePost Content-Type header explicitly
see: GHSA-x7cf-8wgv-5j86 Signed-off-by: Hans Zandbelt <[email protected]>
1 parent bd1df8e commit 6a0b5f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mod_auth_openidc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ const char *oidc_original_request_method(request_rec *r, oidc_cfg_t *cfg, apr_by
326326
return OIDC_METHOD_GET;
327327

328328
const char *content_type = oidc_http_hdr_in_content_type_get(r);
329-
if ((r->method_number == M_POST) &&
329+
if ((r->method_number == M_POST) && (content_type != NULL) &&
330330
(_oidc_strcmp(content_type, OIDC_HTTP_CONTENT_TYPE_FORM_ENCODED) == 0))
331331
method = OIDC_METHOD_FORM_POST;
332332
}

0 commit comments

Comments
 (0)