Ticket #1557 (closed defect: fixed)

Opened 7 years ago

Last modified 6 years ago

Fixed assertion when TURN session is already destroyed (thanks to Guilherme Balena for the report)

Reported by: ming Owned by: bennylp
Priority: normal Milestone: release-2.1
Component: pjnath Version: trunk
Keywords: Cc:
Backport to 1.x milestone: release-1.16 Backported: yes

Description

When TURN client is connected to a Wifi network with network access control through web authentication/payment, this will happen:

  • the turn_on_state function (turn_sock.c) enters in PJ_TURN_STATE_DESTROYING state.
  • After that, it enters in on_connect_complete function, calling the pj_turn_session_alloc function with the attribute "sess" equal to NULL (due to last action).

Thus, the pj_turn_session_alloc function itself has an invalid PJ_ASSERT_RETURN(sess, PJ_EINVAL) statement in its beginning.

Change History

comment:1 Changed 7 years ago by ming

In [4207]: Fixed assertion when TURN session is already destroyed.

Last edited 7 years ago by ming (previous) (diff)

comment:2 Changed 6 years ago by nanang

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

comment:3 Changed 6 years ago by nanang

In 4386:

Re #1557: backported to 1.x

comment:4 Changed 6 years ago by nanang

  • Backported set
Note: See TracTickets for help on using tickets.