diff options
-rw-r--r-- | source3/rpc_server/lsa/srv_lsa_nt.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/rpc_server/lsa/srv_lsa_nt.c b/source3/rpc_server/lsa/srv_lsa_nt.c index 4a8da2f092..23b5869d2e 100644 --- a/source3/rpc_server/lsa/srv_lsa_nt.c +++ b/source3/rpc_server/lsa/srv_lsa_nt.c @@ -1653,8 +1653,9 @@ NTSTATUS _lsa_DeleteTrustedDomain(struct pipes_struct *p, return status; } - if (!pdb_del_trusteddom_pw(info->name)) { - return NT_STATUS_NO_TRUST_LSA_SECRET; + status = pdb_del_trusted_domain(info->name); + if (!NT_STATUS_IS_OK(status)) { + return status; } return NT_STATUS_OK; |