mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-05-28 04:35:40 -04:00
Fixed default behaviour of check_ldaps
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1747 f882894a-f735-0410-b71e-b25c423dba1c
This commit is contained in:
parent
596002687a
commit
f39f01e498
1 changed files with 3 additions and 1 deletions
|
|
@ -101,12 +101,14 @@ main (int argc, char *argv[])
|
|||
|
||||
if (strstr(argv[0],"check_ldaps")) {
|
||||
asprintf (&progname, "check_ldaps");
|
||||
starttls = TRUE;
|
||||
}
|
||||
|
||||
if (process_arguments (argc, argv) == ERROR)
|
||||
usage4 (_("Could not parse arguments"));
|
||||
|
||||
if (strstr(argv[0],"check_ldaps") && ! starttls && ! ssl_on_connect)
|
||||
starttls = TRUE;
|
||||
|
||||
/* initialize alarm signal handling */
|
||||
signal (SIGALRM, socket_timeout_alarm_handler);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue