On Tue, Jul 01, 2003 at 09:16:20AM -0400, Sam Varshavchik wrote:

> This is not a valid fix.  Whatever the problem is, it must be elsewhere.

But it works ... somehow.
flags is 0, and somehow therefor it DOESN'T enter the if().
If you remove flags from the if(), it works...

Is this a better fix then? 

--- courier-imap-1.7.3.20030629/tcpd/tcpd.c     Mon Jun 30 16:36:04 2003
+++ courier-imap-1.7.3.20030629-tcpd/tcpd/tcpd.c        Tue Jul  1 17:33:15 2003
@@ -312,7 +312,7 @@
        /* Create an IPv6 or an IPv4 socket */
 
 #if    RFC1035_IPV6
-       if (flags & MKS_USEAFINET4)
+       if ((flags >= 0) & MKS_USEAFINET4)
        {
                fd=socket(PF_INET, SOCK_STREAM, 0);
                af=AF_INET;




> >
> >--- courier-imap-1.7.3/tcpd/tcpd.c      Sun Jan  5 05:25:20 2003
> >+++ courier-imap-1.7.3-tcpd/tcpd/tcpd.c Mon Jun 30 13:48:46 2003
> >@@ -443,7 +443,7 @@
> > 
> >        for (p=fdlist; p; p=p->next)
> >        {
> >-               int fd=mksocket(p->ipaddr, p->servname, 0);
> >+               int fd=mksocket(p->ipaddr, p->servname, 1);
> > 
> >                if (fd < 0)
> >                        break;
> >
> >
> >FreeBSD 5.1 uses GCC 3.2.2, maybe this one is giving some trouble?
> 



-- 
WideXS                          http://www.widexs.nl
Wouter de Jong                  System-Administrator
Tel +31 (0)23 5698070           Fax +31 (0)23 5698099
Bijlmermeerstraat 62,           2131 HG  HOOFDDORP, NL


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to