svn commit: samba r17321 - in branches/SAMBA_4_0/source/librpc/rpc: .

metze at samba.org metze at samba.org
Sun Jul 30 17:43:58 GMT 2006


Author: metze
Date: 2006-07-30 17:43:58 +0000 (Sun, 30 Jul 2006)
New Revision: 17321

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

Log:
give better error codes

metze
Modified:
   branches/SAMBA_4_0/source/librpc/rpc/dcerpc.c


Changeset:
Modified: branches/SAMBA_4_0/source/librpc/rpc/dcerpc.c
===================================================================
--- branches/SAMBA_4_0/source/librpc/rpc/dcerpc.c	2006-07-30 17:34:37 UTC (rev 17320)
+++ branches/SAMBA_4_0/source/librpc/rpc/dcerpc.c	2006-07-30 17:43:58 UTC (rev 17321)
@@ -576,7 +576,7 @@
 	if ((pkt->ptype != DCERPC_PKT_BIND_ACK) ||
 	    (pkt->u.bind_ack.num_results == 0) ||
 	    (pkt->u.bind_ack.ctx_list[0].result != 0)) {
-		composite_error(c, NT_STATUS_UNSUCCESSFUL);
+		composite_error(c, NT_STATUS_NET_WRITE_FAULT);
 		return;
 	}
 
@@ -1529,7 +1529,7 @@
 	if (pkt->ptype != DCERPC_PKT_ALTER_RESP ||
 	    pkt->u.alter_resp.num_results == 0 ||
 	    pkt->u.alter_resp.ctx_list[0].result != 0) {
-		composite_error(c, NT_STATUS_UNSUCCESSFUL);
+		composite_error(c, NT_STATUS_NET_WRITE_FAULT);
 		return;
 	}
 



More information about the samba-cvs mailing list