]> git.ipfire.org Git - thirdparty/curl.git/commit
openssl: avoid static variable for seed flag
authorDaniel Stenberg <daniel@haxx.se>
Mon, 28 Jun 2021 14:41:17 +0000 (16:41 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 29 Jun 2021 12:18:15 +0000 (14:18 +0200)
commit4aed7a192332cb6a975f135b256c193034332677
tree04179e9841cab79ca23e197a8b44f6863cdcea3b
parentb5a434f7f0ee4d64857f8592eced5b9007d83620
openssl: avoid static variable for seed flag

Avoid the race condition risk by instead storing the "seeded" flag in
the multi handle. Modern OpenSSL versions handle the seeding itself so
doing the seeding once per multi-handle instead of once per process is
less of an issue.

Reported-by: Gerrit Renker
Fixes #7296
Closes #7306
lib/multihandle.h
lib/vtls/openssl.c