mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
Fix Coverity ID 628, Andrew B., please check!
This commit is contained in:
parent
2012770393
commit
951de68721
@ -933,7 +933,7 @@ static NTSTATUS dcesrv_lsa_CreateTrustedDomain_base(struct dcesrv_call_state *dc
|
||||
|
||||
if (r->in.info->trust_direction & LSA_TRUST_DIRECTION_INBOUND) {
|
||||
msg_user = ldb_msg_new(mem_ctx);
|
||||
if (msg == NULL) {
|
||||
if (msg_user == NULL) {
|
||||
ldb_transaction_cancel(trusted_domain_state->policy->sam_ldb);
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user