From 50854a1603d0921a0884e817c44b48309f2812f5 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Thu, 15 Jan 2004 05:17:40 +0000 Subject: BUG 972; check pointer in cli_ds_getprimarydominfo() before trying to copy a structure (This used to be commit a1aed0b517f7476301d8fe4dfebac3db178ba1cd) --- source3/rpc_client/cli_ds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit