Don't do SSL setup if it's not requested. Missing braces.

This commit is contained in:
dmiller 2017-08-02 04:05:48 +00:00
parent 1323cad17b
commit b70ee4f531

View file

@ -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 */