summaryrefslogtreecommitdiff
path: root/net-mgmt/monitoring-plugins/files
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2018-10-03 08:09:59 +0000
committerMathieu Arnold <mat@FreeBSD.org>2018-10-03 08:09:59 +0000
commit27754cf3a7406c7dc2adecd0725561b0e955036c (patch)
tree0f7cd1ef946a9cf6bac5eb03b6d4612f9182cac3 /net-mgmt/monitoring-plugins/files
parentNew port: math/deal.ii: Finite element Differential Equations Analysis Librar... (diff)
Fix spurious crashes.
PR: 231801 Submitted by: madpilot
Diffstat (limited to 'net-mgmt/monitoring-plugins/files')
-rw-r--r--net-mgmt/monitoring-plugins/files/patch-lib_utils__base.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/net-mgmt/monitoring-plugins/files/patch-lib_utils__base.c b/net-mgmt/monitoring-plugins/files/patch-lib_utils__base.c
new file mode 100644
index 000000000000..f2eea57ad561
--- /dev/null
+++ b/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();
+ }