aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Dingwall <james-autofs@dingwall.me.uk>2022-07-20 13:22:38 +0800
committerIan Kent <raven@themaw.net>2022-07-20 15:02:19 +0800
commitb2571ed0df973a6dc6a8e661874655fa7cecdc37 (patch)
treeb7f2ecc9356ef52f2c8e74efc7f75b6647ba8876
parentf60e40af3c038b8955325a11b7294ad38c15c9e8 (diff)
downloadautofs-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--CHANGELOG1
-rw-r--r--modules/cyrus-sasl.c4
2 files changed, 5 insertions, 0 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 1f7c93ab..e0b285d1 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -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: