r24576: Implement endpwent
authorKai Blin <kai@samba.org>
Mon, 20 Aug 2007 11:41:36 +0000 (11:41 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 20:02:19 +0000 (15:02 -0500)
source/winbind/wb_samba3_cmd.c

index 55a763f91ebaba7d1d9cffea7f7d34fa33fbd0ba..22f9fd5f5ac7d40104903df57749ab5b0f11de6c 100644 (file)
@@ -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;
 }