aboutsummaryrefslogtreecommitdiffstats
path: root/community/autofs/fix-segfault.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/autofs/fix-segfault.patch')
-rw-r--r--community/autofs/fix-segfault.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/community/autofs/fix-segfault.patch b/community/autofs/fix-segfault.patch
new file mode 100644
index 00000000000..40439e586bb
--- /dev/null
+++ b/community/autofs/fix-segfault.patch
@@ -0,0 +1,14 @@
+diff --git a/lib/log.c b/lib/log.c
+index aa4a180..7601cad 100644
+--- a/lib/log.c
++++ b/lib/log.c
+@@ -38,6 +38,9 @@ static char *prepare_attempt_prefix(const char *msg)
+ char buffer[ATTEMPT_ID_SIZE + 1];
+ char *prefixed_msg = NULL;
+
++ if (key_thread_attempt_id == 0)
++ return NULL;
++
+ attempt_id = pthread_getspecific(key_thread_attempt_id);
+ if (attempt_id) {
+ int len = sizeof(buffer) + 1 + strlen(msg) + 1;