Blame SOURCES/autofs-5.1.8-fix-missing-unlock-in-sasl_do_kinit_ext_cc.patch

de1ab5
autofs-5.1.8 - fix missing unlock in sasl_do_kinit_ext_cc()
de1ab5
de1ab5
From: James Dingwall <james-autofs@dingwall.me.uk>
de1ab5
de1ab5
There is a missing mutex unlock in function sasl_do_kinit_ext_cc(),
de1ab5
fix it.
de1ab5
de1ab5
Signed-off-by: James Dingwall <james-autofs@dingwall.me.uk>
de1ab5
Signed-off-by: Ian Kent <raven@themaw.net>
de1ab5
---
de1ab5
 CHANGELOG            |    1 +
de1ab5
 modules/cyrus-sasl.c |    4 ++++
de1ab5
 2 files changed, 5 insertions(+)
de1ab5
de1ab5
--- autofs-5.1.7.orig/CHANGELOG
de1ab5
+++ autofs-5.1.7/CHANGELOG
de1ab5
@@ -103,6 +103,7 @@
de1ab5
 - fix nfsv4 only mounts should not use rpcbind.
de1ab5
 - dont use initgroups() at spawn.
de1ab5
 - fix invalid tsv access.
de1ab5
+- fix missing unlock in sasl_do_kinit_ext_cc().
de1ab5
 
de1ab5
 25/01/2021 autofs-5.1.7
de1ab5
 - make bind mounts propagation slave by default.
de1ab5
--- autofs-5.1.7.orig/modules/cyrus-sasl.c
de1ab5
+++ autofs-5.1.7/modules/cyrus-sasl.c
de1ab5
@@ -721,6 +721,10 @@ sasl_do_kinit_ext_cc(unsigned logopt, st
de1ab5
 
de1ab5
 	debug(logopt, "Kerberos authentication was successful!");
de1ab5
 
de1ab5
+	status = pthread_mutex_unlock(&krb5cc_mutex);
de1ab5
+	if (status)
de1ab5
+		fatal(status);
de1ab5
+
de1ab5
 	return 0;
de1ab5
 
de1ab5
 out_cleanup_def_princ: