Ticket #2064 (closed defect: fixed)

Opened 8 days ago

Last modified 8 days ago

Fix return code in pjsip_find_msg()

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

Description

The default return code for pjsip_find_msg() was PJ_SUCCESS so if a Content-Length header wasn't found at all, pjsip_find_msg() was returning PJ_SUCCESS instead of PJSIP_EMISSINGHDR.

Also added the volatile keyword to a few variables what are used both inside and outsude the PJ_TRY/PJ_CATCH block.

Thanks to George Joseph for the patch.

Change History

comment:1 Changed 8 days ago by riza

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

In 5694:

Fixed #2064: Fix return code in pjsip_find_msg().

Note: See TracTickets for help on using tickets.