diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/smbd/service.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/smbd/service.c b/source/smbd/service.c index cb9bfcc27ae..fdbb84735e1 100644 --- a/source/smbd/service.c +++ b/source/smbd/service.c @@ -1014,6 +1014,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) { |