diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-06-01 07:25:30 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-06-01 07:25:30 +0000 |
commit | 01ab9abb169648315c02118e3b6cc3747f639e2e (patch) | |
tree | 6f84a4d6d538fb733c6f5dcb8a6500c66e1278dd | |
parent | 4ac189b62c381cb93b7605b19da0888821c8e15b (diff) |
Added assertion in regc to check if application has called pjsip_regc_destroy() while transaction was in progress
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1332 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r-- | pjsip/src/pjsip-ua/sip_reg.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pjsip/src/pjsip-ua/sip_reg.c b/pjsip/src/pjsip-ua/sip_reg.c index dc15fefc..e48f28d1 100644 --- a/pjsip/src/pjsip-ua/sip_reg.c +++ b/pjsip/src/pjsip-ua/sip_reg.c @@ -651,6 +651,11 @@ static void tsx_callback(void *token, pjsip_event *event) pjsip_rx_data *rdata; pj_int32_t expiration = 0xFFFF; + /* User must not destroy the regc while transaction was in + * progress + */ + pj_assert(regc->_delete_flag == 0); + if (tsx->status_code/100 == 2) { int i; pjsip_contact_hdr *hdr; |