Ticket #2060 (closed defect: fixed)

Opened 12 days ago

Last modified 12 days 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

Description

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 12 days 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.