[Pkg-clamav-commits] [SCM] Debian repository for ClamAV branch, debian/unstable, updated. debian/0.95+dfsg-1-6156-g094ec9b

Tomasz Kojm tkojm at clamav.net
Sun Apr 4 01:09:05 UTC 2010


The following commit has been merged in the debian/unstable branch:
commit 593970e0ba23c460a12a5cb403dd31fbfa79857c
Author: Tomasz Kojm <tkojm at clamav.net>
Date:   Tue Nov 10 16:51:51 2009 +0100

    freshclam/notify.c: fix clamd notification in TCP mode (bb#1756)

diff --git a/ChangeLog b/ChangeLog
index 58ae2cf..c7f64c6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Tue Nov 10 16:50:56 CET 2009 (tk)
+---------------------------------
+ * freshclam/notify.c: fix clamd notification in TCP mode (bb#1756)
+
 Tue Nov 10 12:52:43 CET 2009 (acab)
 -----------------------------------
  * doc/man/clamav-milter.8.in: fix typo
diff --git a/freshclam/notify.c b/freshclam/notify.c
index 8dfb005..9408e40 100644
--- a/freshclam/notify.c
+++ b/freshclam/notify.c
@@ -100,8 +100,9 @@ int notify(const char *cfgfile)
 #else
 	hints.ai_family = AF_INET;
 #endif
+	hints.ai_flags = AI_PASSIVE;
 	hints.ai_socktype = SOCK_STREAM;
-	snprintf(port, 5, "%u", (unsigned int) opt->numarg);
+	snprintf(port, sizeof(port), "%u", (unsigned int) opt->numarg);
 	port[5] = 0;
 
 	if((opt = optget(opts, "TCPAddr"))->enabled)

-- 
Debian repository for ClamAV



More information about the Pkg-clamav-commits mailing list