]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Error in s_server when -rev option is used with dtls.
authorFrederik Wedel-Heinen <frederik.wedel-heinen@dencrypt.dk>
Fri, 12 Jan 2024 09:14:43 +0000 (10:14 +0100)
committerTomas Mraz <tomas@openssl.org>
Mon, 15 Jan 2024 15:35:00 +0000 (16:35 +0100)
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23278)

(cherry picked from commit 575117efe1e0eb8073c2d26ae3dff8926be00591)

apps/s_server.c

index c8ccdfd03ca196c39961d6e9121f33c6fa73c32e..4a4d7c25b50f3e9e274fe6cf2b40da9d4e4a4b5d 100644 (file)
@@ -1670,6 +1670,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) {