Skip to content

Commit

Permalink
Error in s_server when -rev option is used with dtls.
Browse files Browse the repository at this point in the history
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from #23278)

(cherry picked from commit 575117e)
  • Loading branch information
fwh-dc authored and t8m committed Jan 15, 2024
1 parent 20cb674 commit f8b96e1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/s_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f8b96e1

Please sign in to comment.