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