diff options
author | Günther Deschner <gd@samba.org> | 2008-01-24 11:44:29 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-01-24 13:54:26 +0100 |
commit | 3b5913810ccb89dedec286b35454ff6b6d4b1cb5 (patch) | |
tree | 2cdb75bbbbae003b4b86c324b403647f711cf5f6 /source3/librpc/gen_ndr/cli_samr.c | |
parent | 5695f9b09f2409fd19e1059dbfbbd4a51f33b461 (diff) | |
download | samba-3b5913810ccb89dedec286b35454ff6b6d4b1cb5.tar.gz samba-3b5913810ccb89dedec286b35454ff6b6d4b1cb5.tar.bz2 samba-3b5913810ccb89dedec286b35454ff6b6d4b1cb5.zip |
Fix samr_EnumDomainUsers in samba3, must not be a ref pointer here.
Guenther
(This used to be commit 3b87c5ce4f74f8dd01bfdf8859c6c832da15cd24)
Diffstat (limited to 'source3/librpc/gen_ndr/cli_samr.c')
-rw-r--r-- | source3/librpc/gen_ndr/cli_samr.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/librpc/gen_ndr/cli_samr.c b/source3/librpc/gen_ndr/cli_samr.c index 99e7e45b02..73c123bbdd 100644 --- a/source3/librpc/gen_ndr/cli_samr.c +++ b/source3/librpc/gen_ndr/cli_samr.c @@ -621,7 +621,9 @@ NTSTATUS rpccli_samr_EnumDomainUsers(struct rpc_pipe_client *cli, /* Return variables */ *resume_handle = *r.out.resume_handle; - *sam = *r.out.sam; + if (sam && r.out.sam) { + *sam = *r.out.sam; + } *num_entries = *r.out.num_entries; /* Return result */ |