diff options
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/service.c | 5 |
1 files changed, 5 insertions, 0 deletions
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) { |