diff options
Diffstat (limited to 'source4/torture/rpc/drsuapi.c')
-rw-r--r-- | source4/torture/rpc/drsuapi.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/torture/rpc/drsuapi.c b/source4/torture/rpc/drsuapi.c index 2938a1a744..5a12ef37f4 100644 --- a/source4/torture/rpc/drsuapi.c +++ b/source4/torture/rpc/drsuapi.c @@ -195,7 +195,11 @@ static BOOL test_DRSBind(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx) status = dcerpc_DRSUAPI_BIND(p, mem_ctx, &r); if (!NT_STATUS_IS_OK(status)) { - printf("DRSUAPI_BIND level failed - %s\n", nt_errstr(status)); + const char *errstr = nt_errstr(status); + if (NT_STATUS_EQUAL(status, NT_STATUS_NET_WRITE_FAULT)) { + errstr = dcerpc_errstr(p->last_fault_code); + } + printf("DRSUAPI_BIND level failed - %s\n", errstr); ret = False; } |