summaryrefslogtreecommitdiff
path: root/source4/libnet
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamen.mazdrashki@postpath.com>2010-03-10 16:37:38 +0200
committerKamen Mazdrashki <kamen.mazdrashki@postpath.com>2010-03-24 17:34:37 +0200
commit00fce797e889eb7b9d8310e18d5264cad5403dd2 (patch)
tree8bdd7eba75a1aeaa019e652be3138c8220328394 /source4/libnet
parent7b4341637cdd9e4797303197e8c2e1e405ab20e1 (diff)
downloadsamba-00fce797e889eb7b9d8310e18d5264cad5403dd2.tar.gz
samba-00fce797e889eb7b9d8310e18d5264cad5403dd2.tar.bz2
samba-00fce797e889eb7b9d8310e18d5264cad5403dd2.zip
s4/drs: drsuapi_DsAddEntry_ErrData propagate structure def in source code
Diffstat (limited to 'source4/libnet')
-rw-r--r--source4/libnet/libnet_become_dc.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/source4/libnet/libnet_become_dc.c b/source4/libnet/libnet_become_dc.c
index ccfb012d6f..f518349114 100644
--- a/source4/libnet/libnet_become_dc.c
+++ b/source4/libnet/libnet_become_dc.c
@@ -2288,33 +2288,33 @@ static void becomeDC_drsuapi1_add_entry_recv(struct tevent_req *subreq)
if (r->out.ctr->ctr3.count != 1) {
WERROR status;
- if (r->out.ctr->ctr3.level != 1) {
+ if (r->out.ctr->ctr3.err_ver != 1) {
composite_error(c, NT_STATUS_INVALID_NETWORK_RESPONSE);
return;
}
- if (!r->out.ctr->ctr3.error) {
+ if (!r->out.ctr->ctr3.err_data) {
composite_error(c, NT_STATUS_INVALID_NETWORK_RESPONSE);
return;
}
- status = r->out.ctr->ctr3.error->info1.status;
+ status = r->out.ctr->ctr3.err_data->v1.status;
- if (!r->out.ctr->ctr3.error->info1.info) {
+ if (!r->out.ctr->ctr3.err_data->v1.info) {
composite_error(c, werror_to_ntstatus(status));
return;
}
/* see if we can get a more detailed error */
- switch (r->out.ctr->ctr3.error->info1.level) {
+ switch (r->out.ctr->ctr3.err_data->v1.dir_err) {
case 1:
- status = r->out.ctr->ctr3.error->info1.info->error1.status;
+ status = r->out.ctr->ctr3.err_data->v1.info->error1.status;
break;
case 4:
case 5:
case 6:
case 7:
- status = r->out.ctr->ctr3.error->info1.info->errorX.extended_err;
+ status = r->out.ctr->ctr3.err_data->v1.info->errorX.extended_err;
break;
}