1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-25 14:50:24 +03:00

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

(This used to be commit a1aed0b517f7476301d8fe4dfebac3db178ba1cd)
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;
if (ctr) {
if ( r.ptr && ctr ) {
ctr->basic = talloc(mem_ctx, sizeof(DSROLE_PRIMARY_DOMAIN_INFO_BASIC));
if (!ctr->basic)
goto done;