diff options
author | Frederik Wedel-Heinen <frederik.wedel-heinen@dencrypt.dk> | 2024-01-12 10:14:43 +0100 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2024-01-15 16:34:37 +0100 |
commit | f8b96e116cb8b78ddbb295c8eedf1bab4227c885 (patch) | |
tree | 3a28c0fbbb69db500c7c70cad1d839c21baddaac /apps | |
parent | 20cb674d81e8070439d50c41f340ed439435aa84 (diff) |
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)
(cherry picked from commit 575117efe1e0eb8073c2d26ae3dff8926be00591)
Diffstat (limited to 'apps')
-rw-r--r-- | apps/s_server.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/s_server.c b/apps/s_server.c index 93f6cb2983..b1164d10cc 100644 --- a/apps/s_server.c +++ b/apps/s_server.c @@ -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) { |