Skip to content

Commit

Permalink
MT#61368 add extra null check
Browse files Browse the repository at this point in the history
Avoids possible null dereference

Change-Id: I7a07ab87bac403cf1e54c7ef2c9077c9ab8098d6
Warned-by: Coverity
  • Loading branch information
rfuchs committed Dec 25, 2024
1 parent 78191d9 commit a73402b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon/codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -2874,7 +2874,7 @@ static tc_code __buffer_delay_packet(struct delay_buffer *dbuf,
dframe->payload_type = payload_type;
dframe->packet = packet;
dframe->ts = packet->ts;
dframe->handler = ch->handler;
dframe->handler = ch ? ch->handler : NULL;
media_packet_copy(&dframe->mp, mp);

LOCK(&dbuf->lock);
Expand Down

0 comments on commit a73402b

Please sign in to comment.