diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-03-17 20:31:15 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-03-29 15:35:52 +0200 |
commit | cd3ae926e7f54b29eb733e42aafd1a1b6c45dc38 (patch) | |
tree | 34ab6f6d7019d6b55ef3d8f9939a56a1e50e62fa | |
parent | d0efef3f864f36eefe6b0abd152c4614324f2fc2 (diff) | |
download | samba-cd3ae926e7f54b29eb733e42aafd1a1b6c45dc38.tar.gz samba-cd3ae926e7f54b29eb733e42aafd1a1b6c45dc38.tar.bz2 samba-cd3ae926e7f54b29eb733e42aafd1a1b6c45dc38.zip |
s4:libnet/libnet_samsync.c: add explicit check for NTSTATUS r.out.result
metze
-rw-r--r-- | source4/libnet/libnet_samsync.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/libnet/libnet_samsync.c b/source4/libnet/libnet_samsync.c index eb4c8269c2..774451fad4 100644 --- a/source4/libnet/libnet_samsync.c +++ b/source4/libnet/libnet_samsync.c @@ -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)); |