Browse Source

MT#60688 fix possible NULL dereference

Change-Id: I780b7034e5cbf5c1d8ddc53ee7f17975d5f3ebd7
Warned-by: Coverity
pull/1853/head
Richard Fuchs 1 year ago
parent
commit
9b292dcd89
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      daemon/call.c

+ 1
- 1
daemon/call.c View File

@ -2848,7 +2848,7 @@ static void __media_init_from_flags(struct call_media *other_media, struct call_
if (!MEDIA_ISSET(other_media, PTIME_OVERRIDE))
other_media->ptime = sp->ptime;
}
if (sp->maxptime > 0) {
if (media && sp->maxptime > 0) {
media->maxptime = sp->maxptime;
}
if (media && flags->ptime > 0) {


Loading…
Cancel
Save