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

remotes/push_mirror/0.96
Tomasz Kojm 16 years ago
parent db32b81d52
commit 593970e0ba
  1. 4
      ChangeLog
  2. 3
      freshclam/notify.c

@ -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

@ -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)

Loading…
Cancel
Save