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:
@ -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;
|
||||||
|
Reference in New Issue
Block a user