mirror of
https://github.com/3proxy/3proxy.git
synced 2025-02-24 02:55:40 +08:00
Remove static to prevent race conditions
This commit is contained in:
parent
8c372572fc
commit
2c8bf28065
@ -112,8 +112,8 @@ SSL_CERT ssl_copy_cert(SSL_CERT cert)
|
|||||||
unsigned char p2[] = "3proxy";
|
unsigned char p2[] = "3proxy";
|
||||||
unsigned char p3[] = "3proxy CA";
|
unsigned char p3[] = "3proxy CA";
|
||||||
|
|
||||||
static char hash_name_sha1[sizeof(src_cert->sha1_hash)*2 + 1];
|
char hash_name_sha1[sizeof(src_cert->sha1_hash)*2 + 1];
|
||||||
static char cache_name[200];
|
char cache_name[200];
|
||||||
|
|
||||||
bin2hex(src_cert->sha1_hash, sizeof(src_cert->sha1_hash), hash_name_sha1, sizeof(hash_name_sha1));
|
bin2hex(src_cert->sha1_hash, sizeof(src_cert->sha1_hash), hash_name_sha1, sizeof(hash_name_sha1));
|
||||||
sprintf(cache_name, "%s%s.pem", cert_path, hash_name_sha1);
|
sprintf(cache_name, "%s%s.pem", cert_path, hash_name_sha1);
|
||||||
|
Loading…
Reference in New Issue
Block a user