[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

smtpserver PARAM BindAddress iface:...



--- smtpserver/cfgread.c        2001/10/09 19:22:43     1.39
+++ smtpserver/cfgread.c        2002/07/11 07:57:11
@@ -238,17 +238,15 @@
 #if defined(AF_INET6) && defined(INET6)
            bindaddr.v6.sin6_family = AF_INET6;
            if (zgetifaddress(AF_INET6, param1+6,
-                             (struct sockaddr *)&bindaddr.v6.sin6_addr))
+                             (struct sockaddr *)&bindaddr.v6))
              /* Didn't get IPv6 interface address of given name.. */
 #endif
              {
                if (zgetifaddress(AF_INET, param1+6,
-                                 (struct sockaddr *)&bindaddr.v4.sin_addr)) {
+                                 (struct sockaddr *)&bindaddr.v4)) {
                  /* No recognized interface! */
                  bindaddr_set = 0;
-               } else
-                 /* Got IPv4 type interface address */
-                 bindaddr.v4.sin_family = AF_INET;
+               }
              }
          } else {
            /* XXX: TODO: Try to see if this is an interface name, and pick

otherwise sockaddr is written at wrong offset.
And BTW in the boilerplate smtpserver.conf example is wrong, it reads

	PARAM BindAddress eth0:2

but it should be

	PARAM BindAddress iface:eth0:2

Matti, will you apply the fix please?

-- 
Eugene Crosser, head of Internet Applications section, +7 501 787 1000
ROL, Teleross, Golden Telecom, http://user.rol.ru/~crosser/

-
To unsubscribe from this list: send the line "unsubscribe zmailer" in
the body of a message to majordomo@nic.funet.fi