diff options
author | Gerald Carter <jerry@samba.org> | 2004-01-15 05:17:40 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2004-01-15 05:17:40 +0000 |
commit | 50854a1603d0921a0884e817c44b48309f2812f5 (patch) | |
tree | f82f8602ed6e286ab1e894587b8395b1ee8124c1 /source3/rpc_client/cli_ds.c | |
parent | a68e3446d0140be9f1b0b538986ee2c6a7c7c2cc (diff) | |
download | samba-50854a1603d0921a0884e817c44b48309f2812f5.tar.gz samba-50854a1603d0921a0884e817c44b48309f2812f5.tar.bz2 samba-50854a1603d0921a0884e817c44b48309f2812f5.zip |
BUG 972; check pointer in cli_ds_getprimarydominfo() before trying to copy a structure
(This used to be commit a1aed0b517f7476301d8fe4dfebac3db178ba1cd)
Diffstat (limited to 'source3/rpc_client/cli_ds.c')
-rw-r--r-- | source3/rpc_client/cli_ds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_client/cli_ds.c b/source3/rpc_client/cli_ds.c index 8c2821d5af..09e63a4714 100644 --- a/source3/rpc_client/cli_ds.c +++ b/source3/rpc_client/cli_ds.c @@ -62,7 +62,7 @@ NTSTATUS cli_ds_getprimarydominfo(struct cli_state *cli, TALLOC_CTX *mem_ctx, result = r.status; - if (ctr) { + if ( r.ptr && ctr ) { ctr->basic = talloc(mem_ctx, sizeof(DSROLE_PRIMARY_DOMAIN_INFO_BASIC)); if (!ctr->basic) goto done; |