Skip to content

Commit

Permalink
srth: reset syn_cookie when caller gets rejected
Browse files Browse the repository at this point in the history
  • Loading branch information
funman committed Apr 11, 2024
1 parent 6506a02 commit 22b3181
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/upipe-srt/upipe_srt_handshake.c
Original file line number Diff line number Diff line change
Expand Up @@ -1372,6 +1372,8 @@ static struct uref *upipe_srt_handshake_handle_hs(struct upipe *upipe, const uin
uint32_t hs_type = srt_get_handshake_type(cif);
if (hs_type >= SRT_HANDSHAKE_TYPE_REJ_UNKNOWN && hs_type <= SRT_HANDSHAKE_TYPE_REJ_GROUP) {
upipe_err_va(upipe, "Remote rejected handshake (%s)", get_hs_error(hs_type));
if (!upipe_srt_handshake->listener)
upipe_srt_handshake->syn_cookie = 0;
upipe_srt_handshake->expect_conclusion = false;
return NULL;
}
Expand Down

0 comments on commit 22b3181

Please sign in to comment.