From 9afe5acdc22adaed4b4b3d70ba3a1a7898256282 Mon Sep 17 00:00:00 2001 From: Jim McDonough Date: Sat, 19 Feb 2005 10:41:51 +0000 Subject: [PATCH] r5456: Increase limit of mapped SIDS to 0x5000, which is what 2k and later do. NT has no limit. We still don't respond the way 2k would to requests larger, which is to actually allocate the memory and send back the entire response, plus a return status of NT_STATUS_NONE_MAPPED. Still looking into ways of doing this without crashing windows. --- source/include/rpc_lsa.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/include/rpc_lsa.h b/source/include/rpc_lsa.h index c0425271b32..01add64727c 100644 --- a/source/include/rpc_lsa.h +++ b/source/include/rpc_lsa.h @@ -390,8 +390,8 @@ typedef struct lsa_trans_name_info } LSA_TRANS_NAME; -/* This number purly arbitary - just to prevent a client from requesting large amounts of memory */ -#define MAX_LOOKUP_SIDS 256 +/* This number is based on Win2k and later maximum response allowed */ +#define MAX_LOOKUP_SIDS 20480 /* LSA_TRANS_NAME_ENUM - LSA Translated Name Enumeration container */ typedef struct lsa_trans_name_enum_info -- 2.11.4.GIT