[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SMTP server is crashing
- To: zmailer@nic.funet.fi
 
- Subject: SMTP server is crashing
 
- From: "Darryl L. Miles" <darryl@netbauds.net>
 
- Date: Fri, 17 Feb 2006 11:07:19 +0000
 
- Original-Recipient: rfc822;zmailer-log@nic.funet.fi
 
- Sender: zmailer-owner@nic.funet.fi
 
- User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-GB; rv:1.8) Gecko/20051219 SeaMonkey/1.0b
 
SMTP server is crashing.  Current CVS version.
#0  0x0806bcc3 in zgetbindaddr (bindspec=0x1 <Address 0x1 out of bounds>, af=65535, sap=0xbfd31150) at zgetbindaddr.c:71
71              if ((bindspec == NULL) || (*bindspec == '\0'))
(gdb) up
#1  0x0805545e in cfg_add_bindaddr (CP=0x0, param1=Variable "param1" is not available.
) at cfgread.c:186
186             rc = zgetbindaddr(param1, use_ipv6, &bindaddr);
(gdb) bt
#0  0x0806bcc3 in zgetbindaddr (bindspec=0x1 <Address 0x1 out of bounds>, af=65535, sap=0xbfd31150) at zgetbindaddr.c:71
#1  0x0805545e in cfg_add_bindaddr (CP=0x0, param1=Variable "param1" is not available.
) at cfgread.c:186
#2  0x08055a72 in readcffile (name=0xbfd42450 "/opt/zmailer/smtpserver.conf") at cfgread.c:800
#3  0x0804f91e in main (argc=5, argv=0xbfd428f4, envp=0xbfd4290c) at smtpserver.c:941
(gdb) quit
cfgread.c:800
    if (!called_getbindaddr) {
      if (use_ipv6)
        cfg_add_bindaddr( NULL, 1, BINDADDR_ALL, 0 );
      cfg_add_bindaddr( NULL, 0, BINDADDR_ALL, 0 );
    }
Quick hack to detect "bindspec==(void*)0x01"
Index: lib/zgetbindaddr.c
===================================================================
RCS file: /cvsroot/zmailer/lib/zgetbindaddr.c,v
retrieving revision 1.5
diff -u -r1.5 zgetbindaddr.c
--- lib/zgetbindaddr.c  18 Feb 2005 02:17:33 -0000      1.5
+++ lib/zgetbindaddr.c  17 Feb 2006 11:05:55 -0000
@@ -68,7 +68,7 @@
 {
        int result = 0;
-       if ((bindspec == NULL) || (*bindspec == '\0'))
+       if ((bindspec == NULL || bindspec == (void*)0x01) || (*bindspec == '\0'))
                bindspec = (char *)getzenv("BINDADDR"); /* we modify this..*/
        if ((bindspec == NULL) || (*bindspec == '\0'))
                return 1; /* not specified - bind to INADDR_ANY */
-- 
Darryl L. Miles
-
To unsubscribe from this list: send the line "unsubscribe zmailer" in
the body of a message to majordomo@nic.funet.fi