diff --git a/apps/s_server.c b/apps/s_server.c index 12792e9643..5858278b46 100644 --- a/apps/s_server.c +++ b/apps/s_server.c @@ -138,9 +138,14 @@ static const char *session_id_prefix = NULL; #ifndef OPENSSL_NO_DTLS static int enable_timeouts = 0; static long socket_mtu; -static int dtlslisten = 0; #endif +/* + * We define this but make it always be 0 in no-dtls builds to simplify the + * code. + */ +static int dtlslisten = 0; + static int early_data = 0; #ifndef OPENSSL_NO_PSK