summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2004-01-15 05:16:29 +0000
committerGerald Carter <jerry@samba.org>2004-01-15 05:16:29 +0000
commit1cb47a2cb7caef9c4f2d6ec3dc9dee666eeb0b08 (patch)
tree6a76bc2be0979b12e709cb95aca771c73bcd4799 /source3
parentbe1b3604ef3d351b1e3013a509dcceb5fed8409f (diff)
downloadsamba-1cb47a2cb7caef9c4f2d6ec3dc9dee666eeb0b08.tar.gz
samba-1cb47a2cb7caef9c4f2d6ec3dc9dee666eeb0b08.tar.bz2
samba-1cb47a2cb7caef9c4f2d6ec3dc9dee666eeb0b08.zip
BUG 972; check pointer in cli_ds_getprimarydominfo() before trying to copy a structure
(This used to be commit 1c15bfacb45d42873f3d7e7cb55ba2cbbbe33d26)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_client/cli_ds.c2
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;