diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/libnet/libnet_user.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/source4/libnet/libnet_user.c b/source4/libnet/libnet_user.c index d0a4e39220..85c69b2fde 100644 --- a/source4/libnet/libnet_user.c +++ b/source4/libnet/libnet_user.c @@ -159,12 +159,13 @@ NTSTATUS libnet_CreateUser_recv(struct composite_context *c, TALLOC_CTX *mem_ctx struct create_user_state *s; status = composite_wait(c); - if (!NT_STATUS_IS_OK(status)) { + if (NT_STATUS_IS_OK(status)) { + r->out.error_string = NULL; + } else { s = talloc_get_type(c->private_data, struct create_user_state); r->out.error_string = talloc_steal(mem_ctx, s->r.out.error_string); } - r->out.error_string = NULL; return status; } @@ -307,12 +308,13 @@ NTSTATUS libnet_DeleteUser_recv(struct composite_context *c, TALLOC_CTX *mem_ctx struct delete_user_state *s; status = composite_wait(c); - if (!NT_STATUS_IS_OK(status)) { + if (NT_STATUS_IS_OK(status)) { + r->out.error_string = NULL; + } else { s = talloc_get_type(c->private_data, struct delete_user_state); r->out.error_string = talloc_steal(mem_ctx, s->r.out.error_string); } - r->out.error_string = NULL; return status; } |