From: Frederik Wedel-Heinen Date: Fri, 12 Jan 2024 09:14:43 +0000 (+0100) Subject: Error in s_server when -rev option is used with dtls. X-Git-Tag: openssl-3.1.5~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc82a8f086470e00e6119a820c617337ed7de0e9;p=thirdparty%2Fopenssl.git Error in s_server when -rev option is used with dtls. Reviewed-by: Matt Caswell Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/23278) (cherry picked from commit 575117efe1e0eb8073c2d26ae3dff8926be00591) --- diff --git a/apps/s_server.c b/apps/s_server.c index 8daa58f9f63..3f372f14a7d 100644 --- a/apps/s_server.c +++ b/apps/s_server.c @@ -1669,6 +1669,11 @@ int s_server_main(int argc, char *argv[]) BIO_printf(bio_err, "Can only use -listen with DTLS\n"); goto end; } + + if (rev && socket_type == SOCK_DGRAM) { + BIO_printf(bio_err, "Can't use -rev with DTLS\n"); + goto end; + } #endif if (stateless && socket_type != SOCK_STREAM) {