]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
ntlm_wb: do not use data->state.buf any longer
authorStefan Eissing <stefan@eissing.org>
Thu, 25 Jan 2024 12:01:28 +0000 (13:01 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 25 Jan 2024 16:04:02 +0000 (17:04 +0100)
Closes #12787

lib/curl_ntlm_wb.c

index 426e845746de3be71aa35ab4df6f5cd29e550159..0c7892ab702722622c9cf4ab574f82ab8f01cc50 100644 (file)
@@ -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;