Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Oct 2018 08:13:59 +0000 (UTC)
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r481147 - in branches/2018Q4/net-mgmt/monitoring-plugins: . files
Message-ID:  <201810030813.w938Dx2S030048@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mat
Date: Wed Oct  3 08:13:59 2018
New Revision: 481147
URL: https://svnweb.freebsd.org/changeset/ports/481147

Log:
  MFH: r481146
  
  Fix spurious crashes.
  
  PR:		231801
  Submitted by:	madpilot

Added:
  branches/2018Q4/net-mgmt/monitoring-plugins/files/patch-lib_utils__base.c
     - copied unchanged from r481146, head/net-mgmt/monitoring-plugins/files/patch-lib_utils__base.c
Modified:
  branches/2018Q4/net-mgmt/monitoring-plugins/Makefile
Directory Properties:
  branches/2018Q4/   (props changed)

Modified: branches/2018Q4/net-mgmt/monitoring-plugins/Makefile
==============================================================================
--- branches/2018Q4/net-mgmt/monitoring-plugins/Makefile	Wed Oct  3 08:09:59 2018	(r481146)
+++ branches/2018Q4/net-mgmt/monitoring-plugins/Makefile	Wed Oct  3 08:13:59 2018	(r481147)
@@ -3,7 +3,7 @@
 
 PORTNAME=	monitoring-plugins
 PORTVERSION=	2.2
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES=	net-mgmt
 MASTER_SITES=	https://www.monitoring-plugins.org/download/ LOCAL/mat/${PORTNAME}
 

Copied: branches/2018Q4/net-mgmt/monitoring-plugins/files/patch-lib_utils__base.c (from r481146, head/net-mgmt/monitoring-plugins/files/patch-lib_utils__base.c)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ branches/2018Q4/net-mgmt/monitoring-plugins/files/patch-lib_utils__base.c	Wed Oct  3 08:13:59 2018	(r481147, copy of r481146, head/net-mgmt/monitoring-plugins/files/patch-lib_utils__base.c)
@@ -0,0 +1,20 @@
+--- lib/utils_base.c.orig	2016-11-29 08:45:08 UTC
++++ lib/utils_base.c
+@@ -87,10 +87,13 @@ void _get_monitoring_plugin( monitoring_
+ void
+ die (int result, const char *fmt, ...)
+ {
+-	va_list ap;
+-	va_start (ap, fmt);
+-	vprintf (fmt, ap);
+-	va_end (ap);
++	if(fmt!=NULL) {
++		va_list ap;
++		va_start (ap, fmt);
++		vprintf (fmt, ap);
++		va_end (ap);
++	}
++
+ 	if(this_monitoring_plugin!=NULL) {
+ 		np_cleanup();
+ 	}



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