Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Sep 2009 02:10:06 GMT
From:      Corey Halpin <chalpin@cs.wisc.edu>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/137972: mail/fetchmail 6.3.11 crashes with segmentation fault on start
Message-ID:  <200909020210.n822A61v064148@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/137972; it has been noted by GNATS.

From: Corey Halpin <chalpin@cs.wisc.edu>
To: bug-followup@FreeBSD.org, chrissicool@chrissicool.net
Cc:  
Subject: Re: ports/137972: mail/fetchmail 6.3.11 crashes with segmentation
	fault on start
Date: Tue, 1 Sep 2009 20:57:04 -0500

   Quite right.
 
   A patch for the port is attached.
 
 ~crh
 
 diff -ruN /usr/ports/mail/fetchmail/files/socket.c.patch fetchmail/files/socket.c.patch
 --- /usr/ports/mail/fetchmail/files/socket.c.patch	1969-12-31 18:00:00.000000000 -0600
 +++ fetchmail/files/socket.c.patch	2009-09-01 20:45:14.000000000 -0500
 @@ -0,0 +1,15 @@
 +--- socket.c.org	2009-08-08 16:01:49.000000000 +0200
 ++++ socket.c	2009-08-08 16:03:17.000000000 +0200
 +@@ -628,9 +628,10 @@
 + 				report(stdout, GT_("Unknown Issuer CommonName\n"));
 + 		}
 + 		if ((i = X509_NAME_get_text_by_NID(subj, NID_commonName, buf, sizeof(buf))) != -1) {
 +-			if (outlevel >= O_VERBOSE)
 ++			if (outlevel >= O_VERBOSE) {
 + 				report(stdout, GT_("Server CommonName: %s\n"), (tt = sdump(buf, i)));
 +-			xfree(tt);
 ++				xfree(tt);
 ++			}
 + 			if ((size_t)i >= sizeof(buf) - 1) {
 + 				/* Possible truncation. In this case, this is a DNS name, so this
 + 				 * is really bad. We do not tolerate this even in the non-strict case. */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909020210.n822A61v064148>