From 5b24f2340ea603c02e68c87b54d34c1e17bfc8ab Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 30 Nov 2022 08:21:44 -0500 Subject: [PATCH] MT#55283 fix possible null deref closes #1575 Change-Id: Ie6f2cb9708c3a9248d763b1a01b4483a0fc81483 --- daemon/codec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/daemon/codec.c b/daemon/codec.c index 1e62dea2d..331a5fbaf 100644 --- a/daemon/codec.c +++ b/daemon/codec.c @@ -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);