Hi,
iptostring() called by autowhite_timeout() is not able to
resolve AF_INET6 addresses.
The size of the buffer should not use IPADDRLEN but IPADDRSTRLEN.
Now works for me.
/Fabien
--- autowhite.c.orig 2006-08-01 16:55:20.000000000 +0200
+++ autowhite.c 2006-08-07 23:13:42.000000000 +0200
@@ -124,7 +124,7 @@
* Expiration
*/
if (aw->a_tv.tv_sec < now.tv_sec) {
- char buf[IPADDRLEN + 1];
+ char buf[IPADDRSTRLEN + 1];
iptostring(aw->a_sa, aw->a_salen, buf, sizeof(buf));
syslog(LOG_INFO, "(local): addr %s from %s rcpt %s: "Message
[PATCH] bug in autowhite_timeout()
2006-08-07 by Fabien Tassin
Attachments
- No local attachments were found for this message.