1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-24 21:49:29 +03:00

BUG 972; check pointer in cli_ds_getprimarydominfo() before trying to copy a structure

(This used to be commit a1aed0b517)
This commit is contained in:
Gerald Carter
2004-01-15 05:17:40 +00:00
parent a68e3446d0
commit 50854a1603

View File

@ -62,7 +62,7 @@ NTSTATUS cli_ds_getprimarydominfo(struct cli_state *cli, TALLOC_CTX *mem_ctx,
result = r.status; result = r.status;
if (ctr) { if ( r.ptr && ctr ) {
ctr->basic = talloc(mem_ctx, sizeof(DSROLE_PRIMARY_DOMAIN_INFO_BASIC)); ctr->basic = talloc(mem_ctx, sizeof(DSROLE_PRIMARY_DOMAIN_INFO_BASIC));
if (!ctr->basic) if (!ctr->basic)
goto done; goto done;