TT#100251 fix redis-restore segfault

Change-Id: I8444e6a84ca2b493d6b6ac728e654b8ad5e55252
(cherry picked from commit 90d650c888)
pull/1116/head
Richard Fuchs 5 years ago
parent 7a42c0c48c
commit d362adf9c7

@ -528,7 +528,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;) {

Loading…
Cancel
Save