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