summaryrefslogtreecommitdiff
path: root/source3/lib/netapi/share.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/netapi/share.c')
-rw-r--r--source3/lib/netapi/share.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/lib/netapi/share.c b/source3/lib/netapi/share.c
index 1d0e1810f1..e6aed36064 100644
--- a/source3/lib/netapi/share.c
+++ b/source3/lib/netapi/share.c
@@ -271,7 +271,8 @@ WERROR NetShareDel_r(struct libnetapi_ctx *ctx,
r->in.net_name,
r->in.reserved,
&werr);
- if (!W_ERROR_IS_OK(werr)) {
+ if (!NT_STATUS_IS_OK(status)) {
+ werr = ntstatus_to_werror(status);
goto done;
}