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:
parent
94f2ef4f72
commit
9a7a97856a
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user