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

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