Opened 6 years ago

Closed 6 years ago

#2064 closed defect (fixed)

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

comment:1 Changed 6 years ago by riza

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

In 5694:

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

Note: See TracTickets for help on using tickets.