svn commit: samba r5459 - in trunk/source/rpc_server: .

jmcd at samba.org jmcd at samba.org
Sat Feb 19 10:59:16 GMT 2005


Author: jmcd
Date: 2005-02-19 10:59:16 +0000 (Sat, 19 Feb 2005)
New Revision: 5459

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

Log:
Merge from 3.0: generate sane response to lookupsids exceeding the limit.

Modified:
   trunk/source/rpc_server/srv_lsa_nt.c


Changeset:
Modified: trunk/source/rpc_server/srv_lsa_nt.c
===================================================================
--- trunk/source/rpc_server/srv_lsa_nt.c	2005-02-19 10:56:40 UTC (rev 5458)
+++ trunk/source/rpc_server/srv_lsa_nt.c	2005-02-19 10:59:16 UTC (rev 5459)
@@ -647,8 +647,9 @@
 	uint32 mapped_count = 0;
 
 	if (num_entries >  MAX_LOOKUP_SIDS) {
-		num_entries = MAX_LOOKUP_SIDS;
-		DEBUG(5,("_lsa_lookup_sids: truncating SID lookup list to %d\n", num_entries));
+		num_entries = 0;
+		DEBUG(5,("_lsa_lookup_sids: limit of %d exceeded, truncating SID lookup list to %d\n", MAX_LOOKUP_SIDS, num_entries));
+		r_u->status = NT_STATUS_NONE_MAPPED;
 	}
 
 	ref = TALLOC_ZERO_P(p->mem_ctx, DOM_R_REF);



More information about the samba-cvs mailing list