summaryrefslogtreecommitdiffstats
path: root/source4/winbind
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2007-08-20 11:41:36 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:02:19 -0500
commit67a9225b9b03db35bc18f97bfdc0279c48d4b632 (patch)
treec686b35c9160aa02deac673c1cf96e5c8d356057 /source4/winbind
parent01db94b95321c04107982ea211d1521cda862fa4 (diff)
downloadsamba-67a9225b9b03db35bc18f97bfdc0279c48d4b632.tar.gz
samba-67a9225b9b03db35bc18f97bfdc0279c48d4b632.tar.xz
samba-67a9225b9b03db35bc18f97bfdc0279c48d4b632.zip
r24576: Implement endpwent
(This used to be commit ef93a7991d3b4445ba87f964f2f17c33044ba8c4)
Diffstat (limited to 'source4/winbind')
-rw-r--r--source4/winbind/wb_samba3_cmd.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/winbind/wb_samba3_cmd.c b/source4/winbind/wb_samba3_cmd.c
index 55a763f91eb..22f9fd5f5ac 100644
--- a/source4/winbind/wb_samba3_cmd.c
+++ b/source4/winbind/wb_samba3_cmd.c
@@ -807,7 +807,14 @@ NTSTATUS wbsrv_samba3_getpwent(struct wbsrv_samba3_call *s3call)
NTSTATUS wbsrv_samba3_endpwent(struct wbsrv_samba3_call *s3call)
{
+ struct wbsrv_pwent *pwent =
+ talloc_get_type(s3call->wbconn->protocol_private_data,
+ struct wbsrv_pwent);
DEBUG(5, ("wbsrv_samba3_endpwent called\n"));
+
+ talloc_free(pwent);
+
+ s3call->wbconn->protocol_private_data = NULL;
s3call->response.result = WINBINDD_OK;
return NT_STATUS_OK;
}