We have detected the same problem and behaviour with POP3 and IMAP servers on
RHEL5 i386.
Looks like the cause of stack smashing is too small size returned by
sizeof(struct sockaddr_storage) function in case if IPv6 protocol is enabled.
Our quick fix patch which has solved the problem:
--- dbmail-2.2.15.orig/db.c 2010-04-14 15:20:15.000000000 +0300
+++ dbmail-2.2.15.test/db.c 2010-04-14 15:20:34.000000000 +0300
@@ -4698,7 +4698,7 @@
} else {
/* get the socket the client is connecting on */
int serr;
- socklen_t len = sizeof(struct sockaddr_storage);
+ socklen_t len = sizeof(saddr);
char host[NI_MAXHOST], serv[NI_MAXSERV];
if (getsockname(fileno(ci->tx), &saddr, &len) < 0) {
Thank you,
Leontiy Onishchuk
Fine Soft Studio
_______________________________________________
DBmail mailing list
[email protected]
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail