diff options
Diffstat (limited to 'web/attachments/321258-patch-521097.diff')
-rw-r--r-- | web/attachments/321258-patch-521097.diff | 23 |
1 files changed, 23 insertions, 0 deletions
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 @@ | |||
1 | diff -u nagios-plugins-1.4.12/debian/changelog nagios-plugins-1.4.12/debian/changelog | ||
2 | --- nagios-plugins-1.4.12.orig/plugins/check_nt.c | ||
3 | +++ nagios-plugins-1.4.12/plugins/check_nt.c | ||
4 | @@ -134,6 +134,11 @@ | ||
5 | /* set socket timeout */ | ||
6 | alarm(socket_timeout); | ||
7 | |||
8 | + if (NULL==server_address) { | ||
9 | + fputs("missing -H parameter\n", stderr); | ||
10 | + exit(return_code); | ||
11 | + } | ||
12 | + | ||
13 | switch (vars_to_check) { | ||
14 | |||
15 | case CHECK_CLIENTVERSION: | ||
16 | @@ -517,7 +522,6 @@ | ||
17 | print_revision(progname,revision); | ||
18 | exit(STATE_OK); | ||
19 | case 'H': /* hostname */ | ||
20 | - if (server_address) free(server_address); | ||
21 | server_address = optarg; | ||
22 | break; | ||
23 | case 's': /* password */ | ||