Module: sems
Branch: master
Commit: 0032cf89a64a699cfba0faa9f75abea3053b07b5
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=0032cf89a64a699cfba0faa9f75abea3053b07b5

Author: Raphael Coeffic <[email protected]>
Committer: Raphael Coeffic <[email protected]>
Date:   Wed Mar 23 21:37:28 2011 +0100

b/f: avoid returning deleted session

---

 core/AmSessionContainer.cpp |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/core/AmSessionContainer.cpp b/core/AmSessionContainer.cpp
index 4fb2e19..18548f8 100644
--- a/core/AmSessionContainer.cpp
+++ b/core/AmSessionContainer.cpp
@@ -247,13 +247,14 @@ AmSession* 
AmSessionContainer::startSessionUAC(AmSipRequest& req, AmArg* session
       
       try {
        session->start();
-      } catch (const string& err) {
+      } catch (...) {
        AmEventDispatcher::instance()->
          delEventQueue(session->getLocalTag(),
                        session->getCallID(),
                        session->getRemoteTag());
-       
+
        delete session;
+       session = NULL;
        throw;
       }
 

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to