]> git.ipfire.org Git - thirdparty/curl.git/commit
wolfssl: clean up wolfcrypt error queue
authorEhren Bendler <ehren.bendler@gmail.com>
Thu, 19 Aug 2021 17:45:55 +0000 (13:45 -0400)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 21 Aug 2021 15:05:14 +0000 (17:05 +0200)
commit797bacf9c5a39f68d337d13f488407eeb507a9fc
treefdf6e5ffc51bfccce3195f65aeb2b7b9ddc3ec1f
parent4e53b9430c7504de8984796e2a2091ec16f27136
wolfssl: clean up wolfcrypt error queue

If wolfSSL is built in certain ways (OPENSSL_EXTRA or Debug), the error
queue gets added on to for each session and never freed. Fix it by
calling ERR_clear_error() like in vtls/openssl when needed. This func is
a no-op in wolfcrypt if the error queue is not enabled.

Closes #7594
lib/vtls/wolfssl.c