Hi,
>>>>> On Sat, 7 Jul 2001 16:07:41 -0400
>>>>> Lawrence Greenfield <[EMAIL PROTECTED]> said:
leg+> Cyrus IMAP 2.0.15 is now available from ftp.andrew.cmu.edu. This is
leg+> primarily a release devoting to bugfixing; we hope that it will prove
leg+> to be stable so we can merge in the alternate namespace and hierarchy
leg+> code shortly.
It seems to doesn't free() memory obtaind throuth strdup() on error.
Here is a patch:
Index: cyrus-imapd-2.0.15/master/master.c
diff -u cyrus-imapd-2.0.15/master/master.c.orig cyrus-imapd-2.0.15/master/master.c
--- cyrus-imapd-2.0.15/master/master.c.orig Sat Jun 23 09:59:48 2001
+++ cyrus-imapd-2.0.15/master/master.c Sun Jul 8 07:56:48 2001
@@ -326,16 +326,19 @@
if ((port = parse_listen(listen)) == NULL) {
/* listen IS the port */
if (!resolve_port(listen, s, &sin)) {
+ free(listen);
return;
}
sin.sin_addr.s_addr = INADDR_ANY;
} else {
/* listen is now just the address */
if (!resolve_port(port, s, &sin)) {
+ free(listen);
return;
}
if (!resolve_host(listen, &sin)) {
s->exec = NULL;
+ free(listen);
return;
}
}
--
Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
[EMAIL PROTECTED] [EMAIL PROTECTED] ume@{,jp.}FreeBSD.org
http://www.imasy.org/~ume/