Yahoo Groups archive

Milter-greylist

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

Message

Re: [milter-greylist] race condition ?

2005-04-08 by Emmanuel Dreyfus

On Fri, Apr 08, 2005 at 02:16:38PM +0200, Martin Paul wrote:
> When looking at the logfile entries one can see that a message was
> correctly greylisted for 1 minute (as configured). The sending MTA
> re-sent the message exactly after 1 minute, and milter-greylist
> accepted the message and it was delivered. The strange thing is
> that the message triplet was not removed from the greylist and
> replaced by an auto-whitelist entry as it should be

That means that in pending.c:pending_check(), we don't match the
if (rest < 0) condition.

rest is time_t. that is signed on my system, is it on yours?
Try running this:

int main(void) {
	size_t x = -1;;

	printf("x = %d\n", x);
	return 0;
}

-- 
Emmanuel Dreyfus
manu@...

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.