svn commit: samba r15857 - in branches/SAMBA_4_0/source/libnet: .

metze at samba.org metze at samba.org
Wed May 24 11:32:17 GMT 2006


Author: metze
Date: 2006-05-24 11:32:17 +0000 (Wed, 24 May 2006)
New Revision: 15857

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=15857

Log:
don't clear the error string after setting it

metze
Modified:
   branches/SAMBA_4_0/source/libnet/libnet_user.c


Changeset:
Modified: branches/SAMBA_4_0/source/libnet/libnet_user.c
===================================================================
--- branches/SAMBA_4_0/source/libnet/libnet_user.c	2006-05-24 07:45:19 UTC (rev 15856)
+++ branches/SAMBA_4_0/source/libnet/libnet_user.c	2006-05-24 11:32:17 UTC (rev 15857)
@@ -159,12 +159,13 @@
 	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 @@
 	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;
 }
 



More information about the samba-cvs mailing list