From 81014d255e488da3807abe75f067042f976fc50d Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 29 Sep 2006 12:47:00 +0000 Subject: r19000: Merge the max tcon check from 3_0_23. Thanks to James Peach that this was not done in the 3_0 tree. Volker (This used to be commit b2fbf5ac0ca38577957e8e7ddb176dd3499de213) --- source3/smbd/service.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source3/smbd/service.c b/source3/smbd/service.c index 9c341f19fd..29f26c0302 100644 --- a/source3/smbd/service.c +++ b/source3/smbd/service.c @@ -1043,6 +1043,11 @@ connection_struct *make_connection(const char *service_in, DATA_BLOB password, smb_panic("make_connection: PANIC ERROR. Called as nonroot\n"); } + if (conn_num_open() > 2047) { + *status = NT_STATUS_INSUFF_SERVER_RESOURCES; + return NULL; + } + if(lp_security() != SEC_SHARE) { vuser = get_valid_user_struct(vuid); if (!vuser) { -- cgit