Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#1557 closed defect (fixed)

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 (4)

comment:1 Changed 12 years ago by ming

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

Version 0, edited 12 years ago by ming (next)

comment:2 Changed 12 years ago by nanang

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

comment:3 Changed 12 years ago by nanang

In 4386:

Re #1557: backported to 1.x

comment:4 Changed 12 years ago by nanang

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