From c2600d70b78f466cbabb173e55d5b286d102ce74 Mon Sep 17 00:00:00 2001 From: Packit Bot Date: May 04 2021 22:13:40 +0000 Subject: Apply patch autofs-5.1.6-fix-lookup_nss_read_master-nsswicth-check-return.patch patch_name: autofs-5.1.6-fix-lookup_nss_read_master-nsswicth-check-return.patch present_in_specfile: true --- diff --git a/CHANGELOG b/CHANGELOG index 52fc100..3c00184 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -91,6 +91,7 @@ xx/xx/2018 autofs-5.1.5 - remove command fifo on autofs mount fail. - add force unlink mounts and exit option. - cleanup stale logpri fifo pipes on unlink and exit. +- fix lookup_nss_read_master() nsswicth check return. 19/12/2017 autofs-5.1.4 - fix spec file url. diff --git a/daemon/lookup.c b/daemon/lookup.c index d9d3a4e..2b9c7e8 100644 --- a/daemon/lookup.c +++ b/daemon/lookup.c @@ -303,10 +303,8 @@ int lookup_nss_read_master(struct master *master, time_t age) master->read_fail = 1; status = check_nss_result(this, result); - if (status >= 0) { - free_sources(&nsslist); - return status; - } + if (status >= 0) + break; } if (!list_empty(&nsslist))