From 994af2a1e9893cbd905a9600334e3ceb55020342 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 25 Apr 2021 23:02:27 +0200 Subject: [PATCH] krb5: don't use 'static' to store PBSZ size response ... because it makes the knowledge and usage cross-transfer in funny and unexpected ways. Reported-by: Harry Sintonen Closes #6963 --- lib/krb5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/krb5.c b/lib/krb5.c index 4a9d40e9f1..fe07d5267e 100644 --- a/lib/krb5.c +++ b/lib/krb5.c @@ -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) -- 2.47.3