Skip to content

Commit 6d56bd8

Browse files
committed
suppress coverity suspicious sizeof
in CURLOPT_WRITEDATA and CURLOPT_HEADERDATA Signed-off-by: Hans Zandbelt <[email protected]>
1 parent a0064ce commit 6d56bd8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/http.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -752,12 +752,12 @@ static apr_byte_t oidc_http_request(request_rec *r, const char *url, const char
752752
/* setup the buffer where the response data will be written to */
753753
OIDC_HTTP_CURL_SETOPT(CURLOPT_WRITEFUNCTION, oidc_http_response_data);
754754
// coverity[suspicious_sizeof]
755-
OIDC_HTTP_CURL_SETOPT(CURLOPT_WRITEDATA, &d_buf);
755+
OIDC_HTTP_CURL_SETOPT(CURLOPT_WRITEDATA, (void *)&d_buf);
756756

757757
/* setup the buffer where the response headers will be written to */
758758
OIDC_HTTP_CURL_SETOPT(CURLOPT_HEADERFUNCTION, oidc_http_response_header);
759759
// coverity[suspicious_sizeof]
760-
OIDC_HTTP_CURL_SETOPT(CURLOPT_HEADERDATA, &h_buf);
760+
OIDC_HTTP_CURL_SETOPT(CURLOPT_HEADERDATA, (void *)&h_buf);
761761

762762
#ifndef LIBCURL_NO_CURLPROTO
763763
#if LIBCURL_VERSION_NUM >= 0x075500

0 commit comments

Comments
 (0)