]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
krb5: don't use 'static' to store PBSZ size response
authorDaniel Stenberg <daniel@haxx.se>
Sun, 25 Apr 2021 21:02:27 +0000 (23:02 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 26 Apr 2021 06:04:52 +0000 (08:04 +0200)
... because it makes the knowledge and usage cross-transfer in funny and
unexpected ways.

Reported-by: Harry Sintonen
Closes #6963

lib/krb5.c

index 4a9d40e9f169ab44a095328c5c31760ab0a5b446..fe07d5267e26a1bd7f1801bbd30db31ad9605d19 100644 (file)
@@ -748,7 +748,7 @@ static int sec_set_protection_level(struct Curl_easy *data)
 
   if(level) {
     char *pbsz;
-    static unsigned int buffer_size = 1 << 20; /* 1048576 */
+    unsigned int buffer_size = 1 << 20; /* 1048576 */
 
     code = ftp_send_command(data, "PBSZ %u", buffer_size);
     if(code < 0)