Changeset 1398 for pjproject/trunk
- Timestamp:
- Jun 28, 2007 2:47:32 AM (17 years ago)
- Location:
- pjproject/trunk/pjsip/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip-simple/publishc.c
r1292 r1398 597 597 &tsx_callback); 598 598 if (status!=PJ_SUCCESS) { 599 --pubc->pending_tsx; 599 // no need to decrement, callback has been called and it should 600 // already decremented pending_tsx. Decrementing this here may 601 // cause accessing freed memory location. 602 //--pubc->pending_tsx; 600 603 PJ_LOG(4,(THIS_FILE, "Error sending request, status=%d", status)); 601 604 } … … 604 607 } 605 608 606 -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_pres.c
r1396 r1398 700 700 701 701 on_error: 702 pjsip_publishc_destroy(acc->publish_sess); 703 acc->publish_sess = NULL; 702 if (acc->publish_sess) { 703 pjsip_publishc_destroy(acc->publish_sess); 704 acc->publish_sess = NULL; 705 } 704 706 return status; 705 707 } … … 736 738 737 739 /* Add credential for authentication */ 738 pjsip_publishc_set_credentials(acc->publish_sess, acc->cred_cnt, 739 acc->cred); 740 if (acc->cred_cnt) { 741 pjsip_publishc_set_credentials(acc->publish_sess, acc->cred_cnt, 742 acc->cred); 743 } 740 744 741 745 /* Set route-set */
Note: See TracChangeset
for help on using the changeset viewer.