[srvx-commits] CVS: services/src sockcheck.c,1.54.2.26,1.54.2.27
Brought to you by:
entrope
From: Miles P. <pet...@us...> - 2001-08-25 20:56:42
|
Update of /cvsroot/srvx/services/src In directory usw-pr-cvs1:/tmp/cvs-serv12817 Modified Files: Tag: rel-1_0 sockcheck.c Log Message: only set a reason int he decision if they fail. if connect() fails ont he last test a NULL state is passed and they'll be accepted, no reason to deal with the reason if they are. Index: sockcheck.c =================================================================== RCS file: /cvsroot/srvx/services/src/sockcheck.c,v retrieving revision 1.54.2.26 retrieving revision 1.54.2.27 diff -C2 -r1.54.2.26 -r1.54.2.27 *** sockcheck.c 2001/08/18 23:25:12 1.54.2.26 --- sockcheck.c 2001/08/25 20:56:39 1.54.2.27 *************** *** 603,607 **** client->addr->decision = decision; client->addr->last_touched = tv_now.tv_sec; - client->addr->reason = client->state->template; if (decision == ACCEPT) { /* do nothing */ --- 603,606 ---- *************** *** 610,613 **** --- 609,613 ---- #endif } else if (decision == REJECT) { + client->addr->reason = client->state->template; proxies_detected++; sockcheck_issue_gline(client->addr); |