From d8376686cdfd4decbd06820afd8145f23f800ca9 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 24 May 2006 11:32:17 +0000 Subject: r15857: don't clear the error string after setting it metze (This used to be commit d273d8ae52255170932405f488876510e02f5813) --- source4/libnet/libnet_user.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'source4/libnet/libnet_user.c') 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; } -- cgit