summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-05-31 00:54:56 +0200
committerGünther Deschner <gd@samba.org>2009-06-02 13:11:42 +0200
commit9a7a97856a4cb017680edef455ceb8c1da2708ee (patch)
tree1e5da21c81000562c03400495b615d9a53d5f0c0 /lib
parent94f2ef4f72aefd774931fe58215107c72fb1bde2 (diff)
downloadsamba-9a7a97856a4cb017680edef455ceb8c1da2708ee.tar.gz
samba-9a7a97856a4cb017680edef455ceb8c1da2708ee.tar.bz2
samba-9a7a97856a4cb017680edef455ceb8c1da2708ee.zip
nss_wrapper: make sure to return after calling real_{set,end}{gr,pw}ent.
Guenther
Diffstat (limited to 'lib')
-rw-r--r--lib/nss_wrapper/nss_wrapper.c4
1 files changed, 4 insertions, 0 deletions
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();