v2.2.17 Segfault

Timo Sirainen tss at iki.fi
Thu May 14 18:45:20 UTC 2015


On 14 May 2015, at 21:14, Adam Lackorzynski <adam at os.inf.tu-dresden.de> wrote:
> 
> Hi,
> 
> I'm using libexec/dovecot/imap via a ssh tunnel. 2.2.17 segfaults while
> accessing a NULL pointer. The following change fixes it for me:
> 
> 
> --- dovecot-2.2.17/src/lib-imap/imap-keepalive.c	2015-05-03 11:12:11.000000000 +0200
> +++ dovecot-2.2.17/src/lib-imap/imap-keepalive.c	2015-05-14 20:06:29.490617405 +0200
> @@ -11,6 +11,8 @@
> {
> 	unsigned int addr;
> 
> +	if (!ip)
> +		return FALSE;
> 	if (ip->family == 0)
> 		return FALSE;
> 	if (ip->family == AF_INET) {

Slightly different fix: http://hg.dovecot.org/dovecot-2.2/rev/4c4eff229426



More information about the dovecot mailing list