Error in s_server when -rev option is used with dtls.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23278)
This commit is contained in:
Frederik Wedel-Heinen 2024-01-12 10:14:43 +01:00 committed by Tomas Mraz
parent 08cecb4448
commit 575117efe1
1 changed files with 5 additions and 0 deletions

View 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) {