Displaying 2 results from an estimated 2 matches for "conn_num_open".
2006 Aug 08
2
Applying security updates
...==============
--- source/smbd/service.c (revision 16676)
+++ source/smbd/service.c (working copy)
@@ -763,6 +763,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);...
2000 May 10
0
patche for samba-2.0.7/source/smbd/conn.c
...+ cth.biggest_in_use = BIGGEST_NONE;
+ cth.smallest_released = SMALLEST_NONE;
}
/****************************************************************************
return the number of open connections
****************************************************************************/
int conn_num_open(void)
{
- return num_open;
+ return cth.num_open;
}
/****************************************************************************
check if a snum is in use
****************************************************************************/
BOOL conn_snum_used(int snum)
{
- connection_struct...