1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-28 17:47:29 +03:00

nss_wrapper: make sure to return after calling real_{set,end}{gr,pw}ent.

Guenther
This commit is contained in:
Günther Deschner 2009-05-31 00:54:56 +02:00
parent 94f2ef4f72
commit 9a7a97856a

View 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();