Skip to content

Commit

Permalink
fix assertion triggered when CANCEL is held and sent later after 100 …
Browse files Browse the repository at this point in the history
…Trying is received
  • Loading branch information
davehorton committed Feb 21, 2024
1 parent cbdcb90 commit fde7188
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion libsofia-sip-ua/nta/nta.c
Original file line number Diff line number Diff line change
Expand Up @@ -9584,8 +9584,14 @@ int outgoing_recv(nta_outgoing_t *_orq,
cancel->orq_delayed = 0;

if (status < 200) {
SU_DEBUG_3(("%s: sending CANCEL after receiving late arriving 100 Trying\n", __func__));
outgoing_send(cancel, 0);
outgoing_complete(orq);

/** DH: fix crash when it continued and asserted on or about line 9719 due to orq being cleared */
if (outgoing_complete(orq)) {
msg_destroy(msg);
return 0;
}
}
else {
outgoing_reply(cancel, SIP_481_NO_TRANSACTION, 0);
Expand Down

0 comments on commit fde7188

Please sign in to comment.