aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_smtp.c
diff options
context:
space:
mode:
authorGravatar Holger Weiss <holger@zedat.fu-berlin.de> 2015-10-06 23:28:24 +0200
committerGravatar Holger Weiss <holger@zedat.fu-berlin.de> 2015-10-06 23:28:24 +0200
commitdfe66c01c0b556dfbac9c1d901d3ba9ed6a1deac (patch)
tree068bf19f2870eef3cfd3b8491be07ce72b53ece5 /plugins/check_smtp.c
parentb317aaf32a8a054f0274aef9137353bffef7a80c (diff)
downloadmonitoring-plugins-dfe66c01c0b556dfbac9c1d901d3ba9ed6a1deac.tar.gz
check_smtp: Let "-D" option imply "-S"
Diffstat (limited to 'plugins/check_smtp.c')
-rw-r--r--plugins/check_smtp.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/check_smtp.c b/plugins/check_smtp.c
index 753ea3e7..2e9b68b1 100644
--- a/plugins/check_smtp.c
+++ b/plugins/check_smtp.c
@@ -582,11 +582,6 @@ process_arguments (int argc, char **argv)
usage4 (_("Timeout interval must be a positive integer"));
}
break;
- case 'S':
- /* starttls */
- use_ssl = TRUE;
- use_ehlo = TRUE;
- break;
case 'D':
/* Check SSL cert validity */
#ifdef USE_OPENSSL
@@ -612,6 +607,10 @@ process_arguments (int argc, char **argv)
#else
usage (_("SSL support not available - install OpenSSL and recompile"));
#endif
+ case 'S':
+ /* starttls */
+ use_ssl = TRUE;
+ use_ehlo = TRUE;
break;
case '4':
address_family = AF_INET;