Browse Source

TT#109251 fix redis restore segfault

Change-Id: I501a47b065e7b8ff28a3ac157c0ce567f228557f
(cherry picked from commit 30c506997f)
mr8.5.4
Richard Fuchs 5 years ago
parent
commit
0ff8a4ee11
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      daemon/codec.c

+ 2
- 2
daemon/codec.c View File

@ -767,7 +767,7 @@ static void __generator_stop(struct call_media *media) {
} }
static void __t38_options_from_flags(struct t38_options *t_opts, const struct sdp_ng_flags *flags) { static void __t38_options_from_flags(struct t38_options *t_opts, const struct sdp_ng_flags *flags) {
#define t38_opt(name) t_opts->name = flags->t38_ ## name
#define t38_opt(name) t_opts->name = flags ? flags->t38_ ## name : 0
t38_opt(no_ecm); t38_opt(no_ecm);
t38_opt(no_v17); t38_opt(no_v17);
t38_opt(no_v27ter); t38_opt(no_v27ter);
@ -785,7 +785,7 @@ static void __check_t38_gateway(struct call_media *pcm_media, struct call_media
t_opts = sp->t38_options; t_opts = sp->t38_options;
else { else {
// create our own options // create our own options
if (flags->t38_fec)
if (flags && flags->t38_fec)
t_opts.fec_span = 3; t_opts.fec_span = 3;
t_opts.max_ec_entries = 3; t_opts.max_ec_entries = 3;
} }


Loading…
Cancel
Save