Yahoo Groups archive

Milter-greylist

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

Message

Re: [milter-greylist] milter-greylist 1.6rc1 and Solaris 9 (sparc)

2004-12-14 by Hajimu UMEMOTO

Hi,

>>>>> On Tue, 14 Dec 2004 12:00:25 +0100
>>>>> <fredrik.pettai@...> said:

pettai> Dec 13 20:00:55 gemini milter-greylist: [ID 634049 mail.error] local_addr: bind failed: Error 0

It's strange.  It seems bind() returns an error without setting errno.
Please try following patch.  Solaris9 might not allow bind to port 0.

Index: sync.c
diff -u -p sync.c.orig sync.c
--- sync.c.orig	Fri Nov 12 23:22:22 2004
+++ sync.c	Tue Dec 14 23:21:44 2004
@@ -1176,12 +1176,12 @@ local_addr(sa, salen)
 	memcpy(&addr, sa, salen);
 	switch(sa->sa_family) {
 	case AF_INET:
-		SA4(&addr)->sin_port = 0;
+		SA4(&addr)->sin_port = 1;
 		break;
 
 #ifdef AF_INET6
 	case AF_INET6:
-		SA6(&addr)->sin6_port = 0;
+		SA6(&addr)->sin6_port = 1;
 		break;
 #endif
 

--
Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
ume@...  ume@{,jp.}FreeBSD.org
http://www.imasy.org/~ume/

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.