git-svn: trunk@2995
Nigel Horne authored on 2007/03/29 20:58:25... | ... |
@@ -1,3 +1,7 @@ |
1 |
+Thu Mar 29 11:05:56 BST 2007 (njh) |
|
2 |
+---------------------------------- |
|
3 |
+ * clamav-milter.c: Incorrectly formatted local IPs were being ignored |
|
4 |
+ |
|
1 | 5 |
Thu Mar 29 00:13:14 CEST 2007 (tk) |
2 | 6 |
---------------------------------- |
3 | 7 |
* docs/signatures.pdf: update |
... | ... |
@@ -9,7 +13,7 @@ Wed Mar 28 21:45:12 CEST 2007 (tk) |
9 | 9 |
Tue Mar 27 22:05:28 BST 2007 (njh) |
10 | 10 |
---------------------------------- |
11 | 11 |
* clamav-milter.c: Added IPv6 support, based on a patch by |
12 |
- Jacek Zapala <jacek@it.pl>, which also adds |
|
12 |
+ Jacek Zapala <jacek@it.pl>, which also adds |
|
13 | 13 |
more --ignore addresses. |
14 | 14 |
Also bug 423 |
15 | 15 |
|
... | ... |
@@ -3913,12 +3913,12 @@ clamfi_send(struct privdata *privdata, size_t len, const char *format, ...) |
3913 | 3913 |
|
3914 | 3914 |
perror(privdata->filename); |
3915 | 3915 |
strerror_r(errno, buf, sizeof(buf)); |
3916 |
- logg(_("!write failure (%u bytes) to %s: %s\n"), |
|
3917 |
- len, privdata->filename, buf); |
|
3916 |
+ logg(_("!write failure (%lu bytes) to %s: %s\n"), |
|
3917 |
+ (unsigned long)len, privdata->filename, buf); |
|
3918 | 3918 |
#else |
3919 | 3919 |
perror(privdata->filename); |
3920 |
- logg(_("!write failure (%u bytes) to %s: %s\n"), |
|
3921 |
- len, privdata->filename, |
|
3920 |
+ logg(_("!write failure (%lu bytes) to %s: %s\n"), |
|
3921 |
+ (unsigned long)len, privdata->filename, |
|
3922 | 3922 |
strerror(errno)); |
3923 | 3923 |
#endif |
3924 | 3924 |
} else { |
... | ... |
@@ -3929,12 +3929,12 @@ clamfi_send(struct privdata *privdata, size_t len, const char *format, ...) |
3929 | 3929 |
{ |
3930 | 3930 |
char buf[32]; |
3931 | 3931 |
strerror_r(errno, buf, sizeof(buf)); |
3932 |
- logg(_("!write failure (%u bytes) to clamd: %s\n"), |
|
3933 |
- len, buf); |
|
3932 |
+ logg(_("!write failure (%lu bytes) to clamd: %s\n"), |
|
3933 |
+ (unsigned long)len, buf); |
|
3934 | 3934 |
} |
3935 | 3935 |
#else |
3936 |
- logg(_("!write failure (%u bytes) to clamd: %s\n"), |
|
3937 |
- len, strerror(errno)); |
|
3936 |
+ logg(_("!write failure (%lu bytes) to clamd: %s\n"), |
|
3937 |
+ (unsigned long)len, strerror(errno)); |
|
3938 | 3938 |
#endif |
3939 | 3939 |
checkClamd(); |
3940 | 3940 |
} |
... | ... |
@@ -4901,6 +4901,9 @@ add_local_ip(char *address) |
4901 | 4901 |
} |
4902 | 4902 |
#endif |
4903 | 4903 |
#endif |
4904 |
+ else |
|
4905 |
+ retval = 0; |
|
4906 |
+ |
|
4904 | 4907 |
free (opt); |
4905 | 4908 |
return retval; |
4906 | 4909 |
} |