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:35:00 +0100 |
commit | 6c0895c3105521b3590be9f5cb833fb25ccc1438 (patch) | |
tree | 1bbbf75c88f74b071e34e052dae9c78dba9351be | |
parent | 5149deb832bc98cd908c4fca345c6f1150f4e286 (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)
-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 c8ccdfd03c..4a4d7c25b5 100644 --- a/apps/s_server.c +++ b/apps/s_server.c @@ -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) { |