From 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 30 Sep 2013 00:03:24 +0200 Subject: Import Nagios Plugins site Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files. --- web/attachments/321258-patch-521097.diff | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 web/attachments/321258-patch-521097.diff (limited to 'web/attachments/321258-patch-521097.diff') diff --git a/web/attachments/321258-patch-521097.diff b/web/attachments/321258-patch-521097.diff new file mode 100644 index 0000000..80d5386 --- /dev/null +++ b/web/attachments/321258-patch-521097.diff @@ -0,0 +1,23 @@ +diff -u nagios-plugins-1.4.12/debian/changelog nagios-plugins-1.4.12/debian/changelog +--- nagios-plugins-1.4.12.orig/plugins/check_nt.c ++++ nagios-plugins-1.4.12/plugins/check_nt.c +@@ -134,6 +134,11 @@ + /* set socket timeout */ + alarm(socket_timeout); + ++ if (NULL==server_address) { ++ fputs("missing -H parameter\n", stderr); ++ exit(return_code); ++ } ++ + switch (vars_to_check) { + + case CHECK_CLIENTVERSION: +@@ -517,7 +522,6 @@ + print_revision(progname,revision); + exit(STATE_OK); + case 'H': /* hostname */ +- if (server_address) free(server_address); + server_address = optarg; + break; + case 's': /* password */ -- cgit v1.2.3-74-g34f1