MT#55283 fix possible null deref

closes #1575

Change-Id: Ie6f2cb9708c3a9248d763b1a01b4483a0fc81483
(cherry picked from commit 5b24f2340e)
mr9.5.5
Richard Fuchs 3 years ago
parent 2a7ab4d542
commit 6532034c44

@ -2039,7 +2039,8 @@ static int packet_dtmf_fwd(struct codec_ssrc_handler *ch, struct transcode_packe
skip:
if (output_ch)
obj_put(&output_ch->h);
obj_put(&decoder_ch->h);
if (decoder_ch)
obj_put(&decoder_ch->h);
}
char *buf = malloc(packet->payload->len + sizeof(struct rtp_header) + RTP_BUFFER_TAIL_ROOM);

Loading…
Cancel
Save