diff options
Diffstat (limited to 'source4/dsdb/repl')
-rw-r--r-- | source4/dsdb/repl/replicated_objects.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/source4/dsdb/repl/replicated_objects.c b/source4/dsdb/repl/replicated_objects.c index a8a93e413a..1efbd29d93 100644 --- a/source4/dsdb/repl/replicated_objects.c +++ b/source4/dsdb/repl/replicated_objects.c @@ -39,7 +39,6 @@ static WERROR dsdb_convert_object_ex(struct ldb_context *ldb, struct dsdb_extended_replicated_object *out) { NTSTATUS nt_status; - enum ndr_err_code ndr_err; WERROR status; uint32_t i; struct ldb_message *msg; @@ -202,12 +201,8 @@ static WERROR dsdb_convert_object_ex(struct ldb_context *ldb, whenChanged_s = ldb_timestring(msg, whenChanged_t); W_ERROR_HAVE_NO_MEMORY(whenChanged_s); - ndr_err = ndr_push_struct_blob(&guid_value, msg, - lp_iconv_convenience(ldb_get_opaque(ldb, "loadparm")), - &in->object.identifier->guid, - (ndr_push_flags_fn_t)ndr_push_GUID); - if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) { - nt_status = ndr_map_error2ntstatus(ndr_err); + nt_status = GUID_to_ndr_blob(&in->object.identifier->guid, msg, &guid_value); + if (!NT_STATUS_IS_OK(nt_status)) { return ntstatus_to_werror(nt_status); } |