diff options
author | Benny Prijono <bennylp@teluu.com> | 2008-07-23 09:59:11 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2008-07-23 09:59:11 +0000 |
commit | afc016bde15daa7769e561d30c027f6c13b51bac (patch) | |
tree | 9478f68e879f55e4394f49e24e336979365bc782 | |
parent | 1a63e616d0c6c86a0f30c9e53dac16c6d2fb8942 (diff) |
Fixed crash in stateful proxy sample when receiving request with malformed CSeq header (thanks Brocha Strous)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2168 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r-- | pjsip-apps/src/samples/stateful_proxy.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pjsip-apps/src/samples/stateful_proxy.c b/pjsip-apps/src/samples/stateful_proxy.c index 1f4b0a91..24c03037 100644 --- a/pjsip-apps/src/samples/stateful_proxy.c +++ b/pjsip-apps/src/samples/stateful_proxy.c @@ -450,7 +450,9 @@ static void tu_on_tsx_state(pjsip_transaction *tsx, pjsip_event *event) * - timeout on the UAC side * - receipt of 2xx response to INVITE */ - if (tsx->state == PJSIP_TSX_STATE_TERMINATED && uac_data->uas_tsx) { + if (tsx->state == PJSIP_TSX_STATE_TERMINATED && uac_data && + uac_data->uas_tsx) + { pjsip_transaction *uas_tsx; struct uas_data *uas_data; |