Fix crash when a server can't be contacted

git-svn: trunk@1046
remotes/push_mirror/metadata
Nigel Horne 21 years ago
parent add5094f96
commit f2a2360337
  1. 5
      clamav-devel/ChangeLog
  2. 1
      clamav-devel/clamav-milter/INSTALL
  3. 9
      clamav-devel/clamav-milter/clamav-milter.c

@ -1,3 +1,8 @@
Sat Oct 30 07:50:33 BST 2004 (njh)
----------------------------------
* clamav-milter: Fix possible crash when one or more servers can't be
contacted
Fri Oct 29 19:11:07 BST 2004 (njh)
----------------------------------
* clamav-milter: Fix problem with deleting X-VIRUS-STATUS not setting

@ -539,6 +539,7 @@ Changes
we can't connect to the returned PORT
Fix problem with deleting X-VIRUS-STATUS not setting correct
libmilter settings
0.80n 30/10/04 Fix possible crash when one or more servers can't be contacted
INTERNATIONALISATION

@ -26,6 +26,9 @@
*
* Change History:
* $Log: clamav-milter.c,v $
* Revision 1.145 2004/10/30 06:49:08 nigelhorne
* Fix crash when a server can't be contacted
*
* Revision 1.144 2004/10/29 18:09:14 nigelhorne
* Fix X-VIRUS-STATUS deletion
*
@ -443,9 +446,9 @@
* Revision 1.6 2003/09/28 16:37:23 nigelhorne
* Added -f flag use MaxThreads if --max-children not set
*/
static char const rcsid[] = "$Id: clamav-milter.c,v 1.144 2004/10/29 18:09:14 nigelhorne Exp $";
static char const rcsid[] = "$Id: clamav-milter.c,v 1.145 2004/10/30 06:49:08 nigelhorne Exp $";
#define CM_VERSION "0.80m"
#define CM_VERSION "0.80n"
/*#define CONFDIR "/usr/local/etc"*/
@ -1801,7 +1804,7 @@ findServer(void)
perror("pthread_cond_broadcast");
pthread_mutex_lock(&sstatus_mutex);
for(; i < max_children; i++)
for(i = 0; i < max_children; i++)
if(cmdSocketsStatus[i] == CMDSOCKET_FREE) {
cmdSocketsStatus[i] = CMDSOCKET_INUSE;
pthread_mutex_unlock(&sstatus_mutex);

Loading…
Cancel
Save