Browse Source

MT#55283 fix possible null deref

closes #1575

Change-Id: Ie6f2cb9708c3a9248d763b1a01b4483a0fc81483
pull/1649/head
Richard Fuchs 3 years ago
parent
commit
5b24f2340e
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      daemon/codec.c

+ 2
- 1
daemon/codec.c View File

@ -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