]> 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:34:06 +0000 (16:34 +0100)
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23278)

apps/s_server.c

index 93f6cb2983f7df1a80c3e3b9ca4b77260f87896c..b1164d10cc8938b2c31683eb8c985071ebd2f1cc 100644 (file)
@@ -1714,6 +1714,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 (tfo && socket_type != SOCK_STREAM) {