diff options
author | Günther Deschner <gd@samba.org> | 2011-01-12 13:41:16 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2011-01-12 13:41:16 +0100 |
commit | 1cd7f6c0e1c52ad09f3c66d89809bae859285880 (patch) | |
tree | 00ad4b2375ae244c5c57a1178c94da272dd31611 /source3/libnet | |
parent | 415a390ba87f2227eee5312eb3838beb9a7abc30 (diff) | |
download | samba-1cd7f6c0e1c52ad09f3c66d89809bae859285880.tar.gz samba-1cd7f6c0e1c52ad09f3c66d89809bae859285880.tar.bz2 samba-1cd7f6c0e1c52ad09f3c66d89809bae859285880.zip |
s3-drsuapi: fix error handling after converting to dcerpc_drsuapi_X functions.
Guenther
Diffstat (limited to 'source3/libnet')
-rw-r--r-- | source3/libnet/libnet_dssync.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/libnet/libnet_dssync.c b/source3/libnet/libnet_dssync.c index e2391625d8..3aed8b68ed 100644 --- a/source3/libnet/libnet_dssync.c +++ b/source3/libnet/libnet_dssync.c @@ -251,11 +251,14 @@ static NTSTATUS libnet_dssync_lookup_nc(TALLOC_CTX *mem_ctx, if (!NT_STATUS_IS_OK(status)) { ctx->error_message = talloc_asprintf(ctx, "Failed to lookup DN for domain name: %s", - get_friendly_werror_msg(werr)); + get_friendly_nt_error_msg(status)); return status; } if (!W_ERROR_IS_OK(werr)) { + ctx->error_message = talloc_asprintf(ctx, + "Failed to lookup DN for domain name: %s", + get_friendly_werror_msg(werr)); return werror_to_ntstatus(werr); } @@ -469,7 +472,7 @@ static NTSTATUS libnet_dssync_getncchanges(TALLOC_CTX *mem_ctx, if (!NT_STATUS_IS_OK(status)) { ctx->error_message = talloc_asprintf(ctx, "Failed to get NC Changes: %s", - get_friendly_werror_msg(werr)); + get_friendly_nt_error_msg(status)); goto out; } |