[srvx-commits] CVS: services/src sockcheck.c,1.85,1.86
Brought to you by:
entrope
|
From: Zoot <zo...@us...> - 2003-02-08 09:29:46
|
Update of /cvsroot/srvx/services/src
In directory sc8-pr-cvs1:/tmp/cvs-serv7178/src
Modified Files:
sockcheck.c
Log Message:
Make stats proxycheck indicate whether proxy scanning is disabled or not and fix a crash that could be caused by enabling proxy scanning through a rehash.
Index: sockcheck.c
===================================================================
RCS file: /cvsroot/srvx/services/src/sockcheck.c,v
retrieving revision 1.85
retrieving revision 1.86
diff -C2 -r1.85 -r1.86
*** sockcheck.c 20 Jan 2003 23:48:17 -0000 1.85
--- sockcheck.c 8 Feb 2003 09:29:43 -0000 1.86
***************
*** 909,916 ****
if (!disable_sockcheck) {
! for (n=0; n<sockcheck_conf.max_clients; n++) {
! if (client_list[n]) sockcheck_free_client(client_list[n]);
}
- free(client_list);
}
sockcheck_num_clients = 0;
--- 909,918 ----
if (!disable_sockcheck) {
! if (client_list) {
! for (n=0; n<sockcheck_conf.max_clients; n++) {
! if (client_list[n]) sockcheck_free_client(client_list[n]);
! }
! free(client_list);
}
}
sockcheck_num_clients = 0;
***************
*** 1050,1053 ****
--- 1052,1058 ----
static MODCMD_FUNC(cmd_stats_proxycheck)
{
+ if (disable_sockcheck) {
+ reply("Proxy scanning is $bdisabled$b.");
+ }
if (argc > 1) {
const char *hostname = argv[1];
|