Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

Re: [milter-greylist] milter-greylist 2.0 beta7 released

2005-05-11 by Hajimu UMEMOTO

Hi,

>>>>> On Wed, 11 May 2005 14:35:59 +0000
>>>>> Emmanuel Dreyfus <manu@...> said:

manu> Here is our beta7 of milter-greylist 2.0
manu> http://ftp.espci.fr/pub/milter-greylist/milter-greylist-2.0b7.tgz
manu> MD5 (milter-greylist-2.0b7.tgz) = 1ca9d0871e18558621f0bee4436b5888

manu> I think we are close to 2.0. If you contributed something, please 
manu> check that you are in the contributor section of the man page and bug
manu> me if you are missing.

Sorry but I found possible memory leak in my code.  Fortunately, it
should not happen.  However, it should be fixed.  Sorry for the mess.

Index: pending.c
diff -u -p pending.c.orig pending.c
--- pending.c.orig	Wed Apr 20 01:57:47 2005
+++ pending.c	Wed May 11 13:00:11 2005
@@ -531,8 +531,10 @@ ipfromstring(str, sa, salen, family)
 	hints.ai_socktype = SOCK_STREAM;
 	if (getaddrinfo(str, "0", &hints, &res) != 0)
 		return 0;
-	if (*salen < res->ai_addrlen)
+	if (*salen < res->ai_addrlen) {
+		freeaddrinfo(res);
 		return -1;
+	}
 	memcpy(sa, res->ai_addr, res->ai_addrlen);
 	*salen = res->ai_addrlen;
 	freeaddrinfo(res);


Sincerely,

--
Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
ume@...  ume@{,jp.}FreeBSD.org
http://www.imasy.org/~ume/

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.