diff options
author | James Dingwall <james-autofs@dingwall.me.uk> | 2022-07-20 13:22:38 +0800 |
---|---|---|
committer | Ian Kent <raven@themaw.net> | 2022-07-20 15:02:19 +0800 |
commit | b2571ed0df973a6dc6a8e661874655fa7cecdc37 (patch) | |
tree | b7f2ecc9356ef52f2c8e74efc7f75b6647ba8876 | |
parent | f60e40af3c038b8955325a11b7294ad38c15c9e8 (diff) | |
download | autofs-b2571ed0df973a6dc6a8e661874655fa7cecdc37.tar.gz |
autofs-5.1.8 - fix missing unlock in sasl_do_kinit_ext_cc()
There is a missing mutex unlock in function sasl_do_kinit_ext_cc(),
fix it.
Signed-off-by: James Dingwall <james-autofs@dingwall.me.uk>
Signed-off-by: Ian Kent <raven@themaw.net>
-rw-r--r-- | CHANGELOG | 1 | ||||
-rw-r--r-- | modules/cyrus-sasl.c | 4 |
2 files changed, 5 insertions, 0 deletions
@@ -27,6 +27,7 @@ - add autofs_strerror_r() helper for musl. - update configure. - handle innetgr() not present in musl. +- fix missing unlock in sasl_do_kinit_ext_cc(). 19/10/2021 autofs-5.1.8 - add xdr_exports(). diff --git a/modules/cyrus-sasl.c b/modules/cyrus-sasl.c index ae046e01..738e363f 100644 --- a/modules/cyrus-sasl.c +++ b/modules/cyrus-sasl.c @@ -721,6 +721,10 @@ sasl_do_kinit_ext_cc(unsigned logopt, struct lookup_context *ctxt) debug(logopt, "Kerberos authentication was successful!"); + status = pthread_mutex_unlock(&krb5cc_mutex); + if (status) + fatal(status); + return 0; out_cleanup_def_princ: |