Author: vlendec
Date: 2006-09-29 12:47:00 +0000 (Fri, 29 Sep 2006)
New Revision: 19000

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

Log:
Merge the max tcon check from 3_0_23. Thanks to James Peach that this was not
done in the 3_0 tree.

Volker

Modified:
   branches/SAMBA_3_0/source/smbd/service.c


Changeset:
Modified: branches/SAMBA_3_0/source/smbd/service.c
===================================================================
--- branches/SAMBA_3_0/source/smbd/service.c    2006-09-29 12:38:51 UTC (rev 
18999)
+++ branches/SAMBA_3_0/source/smbd/service.c    2006-09-29 12:47:00 UTC (rev 
19000)
@@ -1043,6 +1043,11 @@
                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) {

Reply via email to