Browse Source

TT#75050 fix SRTP index slip while transcoding

fixes #917

Change-Id: I73c5ac51c4e77d5f1c7e38b331cbf19fd44dcdd6
changes/12/37112/2
Richard Fuchs 6 years ago
parent
commit
a1de3258a9
1 changed files with 5 additions and 4 deletions
  1. +5
    -4
      kernel-module/xt_RTPENGINE.c

+ 5
- 4
kernel-module/xt_RTPENGINE.c View File

@ -3959,14 +3959,15 @@ src_check_ok:
if (unlikely((g->target.ssrc) && (g->target.ssrc != rtp.header->ssrc)))
goto skip_error;
// if RTP, only forward packets of known/passthrough payload types
if (g->target.rtp && rtp_pt_idx < 0)
goto skip1;
pkt_idx = packet_index(&g->decrypt, &g->target.decrypt, rtp.header);
errstr = "SRTP authentication tag mismatch";
if (srtp_auth_validate(&g->decrypt, &g->target.decrypt, &rtp, &pkt_idx))
goto skip_error;
// if RTP, only forward packets of known/passthrough payload types
if (g->target.rtp && rtp_pt_idx < 0)
goto skip1;
errstr = "SRTP decryption failed";
if (srtp_decrypt(&g->decrypt, &g->target.decrypt, &rtp, pkt_idx))
goto skip_error;


Loading…
Cancel
Save