summaryrefslogtreecommitdiff
path: root/source4/libnet
diff options
context:
space:
mode:
authorRafal Szczesniak <mimir@samba.org>2006-12-13 23:36:34 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:29:16 -0500
commit5ff19e8ca4bbd54570d8f9eab924a796131c20a3 (patch)
tree619b3da8320470196e4ce95fa9520e16d2a97176 /source4/libnet
parent1dd09da39210d180bfd5a0df8b999f2fe82879f0 (diff)
downloadsamba-5ff19e8ca4bbd54570d8f9eab924a796131c20a3.tar.gz
samba-5ff19e8ca4bbd54570d8f9eab924a796131c20a3.tar.bz2
samba-5ff19e8ca4bbd54570d8f9eab924a796131c20a3.zip
r20162: Always return some error string.
rafal (This used to be commit 0c373605776eb166ffe46db0dd21395efc3bb186)
Diffstat (limited to 'source4/libnet')
-rw-r--r--source4/libnet/libnet_user.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/libnet/libnet_user.c b/source4/libnet/libnet_user.c
index 53a41dc1d5..5c0f543d0f 100644
--- a/source4/libnet/libnet_user.c
+++ b/source4/libnet/libnet_user.c
@@ -804,6 +804,9 @@ NTSTATUS libnet_UserInfo_recv(struct composite_context *c, TALLOC_CTX *mem_ctx,
r->out.acct_flags = info->acct_flags;
r->out.error_string = talloc_strdup(mem_ctx, "Success");
+
+ } else {
+ r->out.error_string = talloc_asprintf(mem_ctx, "Error: %s", nt_errstr(status));
}
talloc_free(c);