From 90d650c8880fde5397d9175362717f570c59d5e8 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 17 Nov 2020 13:32:11 -0500 Subject: [PATCH] TT#100251 fix redis-restore segfault Change-Id: I8444e6a84ca2b493d6b6ac728e654b8ad5e55252 --- daemon/codec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/codec.c b/daemon/codec.c index f09a7c53b..2f05b0326 100644 --- a/daemon/codec.c +++ b/daemon/codec.c @@ -500,7 +500,7 @@ static int __unused_pt_number(struct call_media *media, int num) { } static void __single_codec(struct call_media *media, const struct sdp_ng_flags *flags) { - if (flags->opmode != OP_ANSWER || !flags->single_codec) + if (!flags || flags->opmode != OP_ANSWER || !flags->single_codec) return; int have_codec = 0; for (GList *l = media->codecs_prefs_recv.head; l;) {