Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

[PATCH] bug in autowhite_timeout()

2006-08-07 by Fabien Tassin

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: "

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.