Ticket #2060 (closed defect: fixed)

Opened 13 months ago

Last modified 13 months ago

Prevent releasing unacquired lock in SIP dialog

Reported by: ming Owned by: bennylp
Priority: normal Milestone: release-2.8
Component: pjsip Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported: no


In sip_dialog.c create_uas_dialog() there are several error conditions (such as PJSIP_EINVALIDURI and PJSIP_SC_BAD_REQUEST) which cause the flow to go to on_error BEFORE dialog lock gets a chance to be incremented.

Thanks to Fredrik Hansson for the report and the patch.

Change History

comment:1 Changed 13 months ago by ming

  • Status changed from new to closed
  • Resolution set to fixed

In 5689:

Fixed #2060: Prevent releasing unacquired lock when creating SIP dialog

Note: See TracTickets for help on using tickets.