From 9a7a97856a4cb017680edef455ceb8c1da2708ee Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Sun, 31 May 2009 00:54:56 +0200 Subject: nss_wrapper: make sure to return after calling real_{set,end}{gr,pw}ent. Guenther --- lib/nss_wrapper/nss_wrapper.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') diff --git a/lib/nss_wrapper/nss_wrapper.c b/lib/nss_wrapper/nss_wrapper.c index 8bfb4c79a6..7922b89107 100644 --- a/lib/nss_wrapper/nss_wrapper.c +++ b/lib/nss_wrapper/nss_wrapper.c @@ -904,6 +904,7 @@ _PUBLIC_ void nwrap_setpwent(void) { if (!nwrap_enabled()) { real_setpwent(); + return; } nwrap_files_setpwent(); @@ -989,6 +990,7 @@ _PUBLIC_ void nwrap_endpwent(void) { if (!nwrap_enabled()) { real_endpwent(); + return; } nwrap_files_endpwent(); @@ -1139,6 +1141,7 @@ _PUBLIC_ void nwrap_setgrent(void) { if (!nwrap_enabled()) { real_setgrent(); + return; } nwrap_files_setgrent(); @@ -1224,6 +1227,7 @@ _PUBLIC_ void nwrap_endgrent(void) { if (!nwrap_enabled()) { real_endgrent(); + return; } nwrap_files_endgrent(); -- cgit