summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/rpc_server/srv_samr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_samr.c b/source3/rpc_server/srv_samr.c
index 857581a471..e92658ea4d 100644
--- a/source3/rpc_server/srv_samr.c
+++ b/source3/rpc_server/srv_samr.c
@@ -339,7 +339,7 @@ static BOOL get_passwd_entries(SAM_USER_INFO_21 *pw_buf,
if (pwd == NULL) {
/* totally done, reset everything */
- endpwent();
+ sys_endpwent();
current_idx = 0;
mapped_idx = 0;
}