summaryrefslogtreecommitdiff
path: root/src/cli-debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli-debug.c')
-rw-r--r--src/cli-debug.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cli-debug.c b/src/cli-debug.c
index 0c2e31226f..8ebec4e426 100644
--- a/src/cli-debug.c
+++ b/src/cli-debug.c
@@ -235,11 +235,11 @@ int main(int argc, char **argv)
}
#endif
- if (HAVE_OPT(APP_PROTO)) {
- snprintf(app_proto, sizeof(app_proto), "%s", OPT_ARG(APP_PROTO));
+ if (HAVE_OPT(STARTTLS_PROTO)) {
+ snprintf(app_proto, sizeof(app_proto), "%s", OPT_ARG(STARTTLS_PROTO));
}
- if (app_proto == NULL) {
+ if (app_proto[0] == 0) {
snprintf(app_proto, sizeof(app_proto), "%s", port_to_service(portname, "tcp"));
}
@@ -340,7 +340,7 @@ static void cmd_parser(int argc, char **argv)
if (HAVE_OPT(PORT))
port = OPT_VALUE_PORT;
else {
- if (HAVE_OPT(APP_PROTO))
+ if (HAVE_OPT(STARTTLS_PROTO))
port = starttls_proto_to_port(OPT_ARG(STARTTLS_PROTO));
else
port = 443;