nss_wrapper: make sure to return after calling real_{set,end}{gr,pw}ent.
authorGünther Deschner <gd@samba.org>
Sat, 30 May 2009 22:54:56 +0000 (00:54 +0200)
committerGünther Deschner <gd@samba.org>
Tue, 2 Jun 2009 11:11:42 +0000 (13:11 +0200)
Guenther

lib/nss_wrapper/nss_wrapper.c

index 8bfb4c79a6a3ff93d49f495f1d0fbc9be7971483..7922b89107f4061835b1c9e4052c1dfaf3ee0c5f 100644 (file)
@@ -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();