Browse Source

MT#55984 safeguard against possible null return

`call_get_monologue_new` is supposed to always return a full dialogue,
but an error in invocation (using a from-tag that doesn't belong to an
offer/answer) can lead to the second half being unset. Return an error
in this case.

Change-Id: I84b21ff5e5c0403fc07cae83fee206705ecff8b3
(cherry picked from commit c8171f7609)
mr11.1
Richard Fuchs 3 years ago
parent
commit
0e2d514005
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      daemon/call.c

+ 2
- 0
daemon/call.c View File

@ -4205,6 +4205,8 @@ ok_check_tag:
break; // there should only be one
// XXX check if there's more than a one-to-one mapping here?
}
if (G_UNLIKELY(!os))
return -1;
__tags_associate(ret, os);
dialogue[0] = ret;
dialogue[1] = os;


Loading…
Cancel
Save