]> diplodocus.org Git - nmh/commit
sbr/netsec.c: Report popped TLS error code, don't pop again.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sat, 10 Jun 2017 17:32:08 +0000 (18:32 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sat, 10 Jun 2017 17:46:40 +0000 (18:46 +0100)
commitfc5b73a4b95c03c2c81b04ee8c819471b66de52d
tree32bf1b53a3f8d3c1c041a73c84fc962531861d94
parent10eea2b0e1f58c09cca6e6bba4984f7f88ba7a72
sbr/netsec.c: Report popped TLS error code, don't pop again.

ERR_get_error() pops an error code so having tested that value it should
also be the one that's reported in an error message, not another popped
error code by calling ERR_get_error() again as this misleads as to the
error's cause.
sbr/netsec.c