aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Eissing <stefan@eissing.org>2024-01-25 13:01:28 +0100
committerDaniel Stenberg <daniel@haxx.se>2024-01-25 17:04:02 +0100
commit8e9c304f4a350a822ca4138de2f20dc8b4ae9807 (patch)
tree66509ae45da026fa37e45b98aa6eed586c705778
parentc93f95a5d8ff86f1c13819df5512fdb5a5c00fe5 (diff)
downloadcurl-8e9c304f4a350a822ca4138de2f20dc8b4ae9807.tar.gz
ntlm_wb: do not use data->state.buf any longer
Closes #12787
-rw-r--r--lib/curl_ntlm_wb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/curl_ntlm_wb.c b/lib/curl_ntlm_wb.c
index 426e84574..0c7892ab7 100644
--- a/lib/curl_ntlm_wb.c
+++ b/lib/curl_ntlm_wb.c
@@ -266,7 +266,7 @@ static CURLcode ntlm_wb_response(struct Curl_easy *data, struct ntlmdata *ntlm,
size_t len_in = strlen(input), len_out = 0;
struct dynbuf b;
char *ptr = NULL;
- unsigned char *buf = (unsigned char *)data->state.buffer;
+ usigned char buf[1024]
Curl_dyn_init(&b, MAX_NTLM_WB_RESPONSE);
while(len_in > 0) {
@@ -284,7 +284,7 @@ static CURLcode ntlm_wb_response(struct Curl_easy *data, struct ntlmdata *ntlm,
/* Read one line */
while(1) {
ssize_t size =
- wakeup_read(ntlm->ntlm_auth_hlpr_socket, buf, data->set.buffer_size);
+ wakeup_read(ntlm->ntlm_auth_hlpr_socket, buf, sizeof(buf));
if(size == -1) {
if(errno == EINTR)
continue;