From: Daniel Stenberg Date: Sun, 25 Apr 2021 21:02:27 +0000 (+0200) Subject: krb5: don't use 'static' to store PBSZ size response X-Git-Tag: curl-7_77_0~131 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=994af2a1e9893cbd905a9600334e3ceb55020342;p=thirdparty%2Fcurl.git 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 --- 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)