Yahoo Groups archive

Milter-greylist

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

Message

RE: [milter-greylist] version 4.0a4 aborts with message: "mg_setreply(): invoked twice"

2007-06-04 by attila.bruncsak@itu.int

> What about this fix?
> 
> Index: milter-greylist.c
> ===================================================================
> RCS file: /cvsroot/milter-greylist/milter-greylist.c,v
> retrieving revision 1.188
> diff -U2 -r1.188 milter-greylist.c
> --- milter-greylist.c   30 May 2007 23:32:06 -0000      1.188
> +++ milter-greylist.c   31 May 2007 23:38:02 -0000
> @@ -2904,8 +2904,8 @@
>  
>  	if (priv->priv_sr.sr_msg_x != NULL) {
> -		mg_log(LOG_ERR, "%s: mg_setreply(): invoked twice",
> -		     priv->priv_queueid);
> -		exit(E _SOFTWARE);
> +		free(priv->priv_sr.sr_msg_x);
> +		priv->priv_sr.sr_msg_x = NULL;
>  	}
> +
>  	priv->priv_sr.sr_msg_x =
>  		fstring_expand(priv, rcpt, priv->priv_sr.sr_msg);
> 

I have applied the patch, and there is no problem for the time being.

Bests,
Attila

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.