TT#100251 fix redis-restore segfault

Change-Id: I8444e6a84ca2b493d6b6ac728e654b8ad5e55252
mr9.1
Richard Fuchs 5 years ago
parent ad5737f183
commit 90d650c888

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

Loading…
Cancel
Save