From b70ee4f5313ca6ab8e3273b590a2f74d90ba51ae Mon Sep 17 00:00:00 2001 From: dmiller Date: Wed, 2 Aug 2017 04:05:48 +0000 Subject: [PATCH] Don't do SSL setup if it's not requested. Missing braces. --- ncat/ncat_listen.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ncat/ncat_listen.c b/ncat/ncat_listen.c index 6d39ce4c4..085329f77 100644 --- a/ncat/ncat_listen.c +++ b/ncat/ncat_listen.c @@ -264,9 +264,11 @@ static int ncat_listen_stream(int proto) #ifdef HAVE_OPENSSL if (o.ssl) + { if (o.sslalpn) bye("ALPN is not supported in listen mode\n"); setup_ssl_listen(); + } #endif /* Not sure if this problem exists on Windows, but fcntl and /dev/null don't */