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

mimir at samba.org mimir at samba.org
Fri Jun 1 12:29:23 GMT 2007


Author: mimir
Date: 2007-06-01 12:29:22 +0000 (Fri, 01 Jun 2007)
New Revision: 23292

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

Log:
check for errors returned in a call result.


rafal


Modified:
   branches/SAMBA_4_0/source/libnet/userman.c


Changeset:
Modified: branches/SAMBA_4_0/source/libnet/userman.c
===================================================================
--- branches/SAMBA_4_0/source/libnet/userman.c	2007-06-01 12:24:57 UTC (rev 23291)
+++ branches/SAMBA_4_0/source/libnet/userman.c	2007-06-01 12:29:22 UTC (rev 23292)
@@ -246,8 +246,13 @@
 {
 	/* receive samr_LookupNames result */
 	c->status = dcerpc_ndr_request_recv(s->req);
+
+	/* check rpc layer status */
 	NT_STATUS_NOT_OK_RETURN(c->status);
 
+	/* check the call itself status */
+	NT_STATUS_NOT_OK_RETURN(s->lookupname.out.result);
+
 	/* what to do when there's no user account to delete
 	   and what if there's more than one rid resolved */
 	if (!s->lookupname.out.rids.count) {



More information about the samba-cvs mailing list