1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

drsuapi: check ctr6->drs_error

metze
This commit is contained in:
Stefan Metzmacher 2008-07-16 13:00:07 +02:00
parent 4e0708148a
commit 511847f5f5
2 changed files with 13 additions and 0 deletions

View File

@ -326,6 +326,13 @@ static void dreplsrv_op_pull_source_get_changes_recv(struct rpc_request *req)
return;
}
if (ctr_level == 6) {
if (!W_ERROR_IS_OK(ctr6->drs_error)) {
composite_error(c, werror_to_ntstatus(ctr6->drs_error));
return;
}
}
dreplsrv_op_pull_source_apply_changes_send(st, r, ctr_level, ctr1, ctr6);
}

View File

@ -2463,6 +2463,12 @@ static WERROR becomeDC_drsuapi_pull_partition_recv(struct libnet_BecomeDC_state
return WERR_BAD_NET_RESP;
}
if (ctr_level == 6) {
if (!W_ERROR_IS_OK(ctr6->drs_error)) {
return ctr6->drs_error;
}
}
switch (ctr_level) {
case 1:
source_dsa_guid = &ctr1->source_dsa_guid;