summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-03-13 00:50:04 +0000
committerJeremy Allison <jra@samba.org>2003-03-13 00:50:04 +0000
commit30d1059b7a29f3f565122c2913531f5cf8a8ce44 (patch)
tree2b63bf4ea20d982185a73ebd77e30616c724f2df /source3/rpc_server
parenta412ed39de1606a767e3e68bfcb4e16e3165238b (diff)
downloadsamba-30d1059b7a29f3f565122c2913531f5cf8a8ce44.tar.gz
samba-30d1059b7a29f3f565122c2913531f5cf8a8ce44.tar.bz2
samba-30d1059b7a29f3f565122c2913531f5cf8a8ce44.zip
Merge of Andrew Bartlett's SID limit fix from HEAD.
Jeremy. (This used to be commit 98ed7e0cbbc693b486bb91855cb3331e51daef6c)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_lsa_nt.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_lsa_nt.c b/source3/rpc_server/srv_lsa_nt.c
index fc51d7ef2f..10c583b70d 100644
--- a/source3/rpc_server/srv_lsa_nt.c
+++ b/source3/rpc_server/srv_lsa_nt.c
@@ -641,6 +641,11 @@ NTSTATUS _lsa_lookup_sids(pipes_struct *p, LSA_Q_LOOKUP_SIDS *q_u, LSA_R_LOOKUP_
LSA_TRANS_NAME_ENUM *names = NULL;
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));
+ }
+
ref = (DOM_R_REF *)talloc_zero(p->mem_ctx, sizeof(DOM_R_REF));
names = (LSA_TRANS_NAME_ENUM *)talloc_zero(p->mem_ctx, sizeof(LSA_TRANS_NAME_ENUM));