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:
parent
a68e3446d0
commit
50854a1603
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user