1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-05 17:15:04 -05:00

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
This commit is contained in:
Daniel Stenberg 2021-04-25 23:02:27 +02:00
parent 9f71cc293f
commit 994af2a1e9
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View 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)