mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s4:libnet/libnet_samsync.c: add explicit check for NTSTATUS r.out.result
metze
This commit is contained in:
parent
d0efef3f86
commit
cd3ae926e7
@ -216,6 +216,9 @@ NTSTATUS libnet_SamSync_netlogon(struct libnet_context *ctx, TALLOC_CTX *mem_ctx
|
||||
dbsync.in.credential = &credential;
|
||||
|
||||
dbsync_nt_status = dcerpc_netr_DatabaseSync_r(p->binding_handle, loop_ctx, &dbsync);
|
||||
if (NT_STATUS_IS_OK(dbsync_nt_status) && !NT_STATUS_IS_OK(dbsync.out.result)) {
|
||||
dbsync_nt_status = dbsync.out.result;
|
||||
}
|
||||
if (!NT_STATUS_IS_OK(dbsync_nt_status) &&
|
||||
!NT_STATUS_EQUAL(dbsync_nt_status, STATUS_MORE_ENTRIES)) {
|
||||
r->out.error_string = talloc_asprintf(mem_ctx, "DatabaseSync failed - %s", nt_errstr(nt_status));
|
||||
|
Loading…
Reference in New Issue
Block a user