ports/137972: mail/fetchmail 6.3.11 crashes with segmentation fault on start
Corey Halpin
chalpin at cs.wisc.edu
Wed Sep 2 02:10:06 UTC 2009
The following reply was made to PR ports/137972; it has been noted by GNATS.
From: Corey Halpin <chalpin at cs.wisc.edu>
To: bug-followup at FreeBSD.org, chrissicool at 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. */
More information about the freebsd-ports-bugs
mailing list