components/fetchmail/patches/16390176.patch
author Rich Burridge <rich.burridge@oracle.com>
Fri, 06 Feb 2015 12:30:31 -0800
changeset 3744 a74b6fa1af7a
parent 1175 3b79e6aa942a
permissions -rw-r--r--
20455804 TWISTED should have some master test results to compare against 20471207 doc/testing.txt should advise removing build output from the master results
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1175
3b79e6aa942a 16390176 parfait issues in fetchmail
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     1
# This patch should be removed when we upgrade to 6.3.25; see the bug report
3b79e6aa942a 16390176 parfait issues in fetchmail
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     2
# for full context.
3b79e6aa942a 16390176 parfait issues in fetchmail
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     3
--- fetchmail/socket.c.orig	2012-08-13 13:02:41.000000000 -0700
3b79e6aa942a 16390176 parfait issues in fetchmail
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     4
+++ fetchmail/socket.c	2013-02-11 15:44:05.297674654 -0800
3b79e6aa942a 16390176 parfait issues in fetchmail
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     5
@@ -133,6 +133,7 @@
3b79e6aa942a 16390176 parfait issues in fetchmail
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     6
 	argvec = (char **)malloc(s);
3b79e6aa942a 16390176 parfait issues in fetchmail
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     7
 	if (!argvec)
3b79e6aa942a 16390176 parfait issues in fetchmail
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     8
 	{
3b79e6aa942a 16390176 parfait issues in fetchmail
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
     9
+		free(plugin_copy);
3b79e6aa942a 16390176 parfait issues in fetchmail
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    10
 		report(stderr, GT_("fetchmail: malloc failed\n"));
3b79e6aa942a 16390176 parfait issues in fetchmail
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    11
 		return NULL;
3b79e6aa942a 16390176 parfait issues in fetchmail
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    12
 	}
3b79e6aa942a 16390176 parfait issues in fetchmail
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    13
@@ -186,6 +187,8 @@
3b79e6aa942a 16390176 parfait issues in fetchmail
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    14
 		if (outlevel >= O_VERBOSE)
3b79e6aa942a 16390176 parfait issues in fetchmail
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    15
 		    report(stderr, GT_("running %s (host %s service %s)\n"), plugin, host, service);
3b79e6aa942a 16390176 parfait issues in fetchmail
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    16
 		argvec = parse_plugin(plugin,host,service);
3b79e6aa942a 16390176 parfait issues in fetchmail
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    17
+		if (argvec == NULL)
3b79e6aa942a 16390176 parfait issues in fetchmail
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    18
+			_exit(EXIT_FAILURE);
3b79e6aa942a 16390176 parfait issues in fetchmail
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    19
 		execvp(*argvec, argvec);
3b79e6aa942a 16390176 parfait issues in fetchmail
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    20
 		report(stderr, GT_("execvp(%s) failed\n"), *argvec);
3b79e6aa942a 16390176 parfait issues in fetchmail
John Beck <John.Beck@Oracle.COM>
parents:
diff changeset
    21
 		_exit(EXIT_FAILURE);