1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-23 00:28:48 -05:00

nss_set_blocking: avoid static for sock_opt

Reviewed-by: Kamil Dudka
Closes #6945
This commit is contained in:
Harry Sintonen 2021-04-24 00:53:42 +03:00 committed by Daniel Stenberg
parent 56e2319611
commit f2e1163bc8
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -1830,7 +1830,7 @@ static CURLcode nss_set_blocking(struct ssl_connect_data *connssl,
struct Curl_easy *data,
bool blocking)
{
static PRSocketOptionData sock_opt;
PRSocketOptionData sock_opt;
struct ssl_backend_data *backend = connssl->backend;
sock_opt.option = PR_SockOpt_Nonblocking;
sock_opt.value.non_blocking = !blocking;