[asterisk-scf-commits] asterisk-scf/release/sip.git branch "master" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Tue Jul 26 13:07:11 CDT 2011


branch "master" has been updated
       via  9679afdc83b045a770a457d3bcc0f45d9e84031a (commit)
      from  14ab7604cb0ee0582db6b5a41ee9ba3687524ac2 (commit)

Summary of changes:
 src/SipRegistrarListener.cpp |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)


- Log -----------------------------------------------------------------
commit 9679afdc83b045a770a457d3bcc0f45d9e84031a
Author: Mark Michelson <mmichelson at digium.com>
Date:   Tue Jul 26 13:07:26 2011 -0500

    Don't push NULL endpoints onto the sequence to update when listening for REGISTERs.

diff --git a/src/SipRegistrarListener.cpp b/src/SipRegistrarListener.cpp
index 29a10e7..8c323c4 100644
--- a/src/SipRegistrarListener.cpp
+++ b/src/SipRegistrarListener.cpp
@@ -49,7 +49,10 @@ SipEndpointSeq SipDefaultRegistrarListener::getEndpoints(pj_pool_t *pool, const
     lg(Debug) << "Extracted endpoint name " << aorUser << " from aor";
     SipEndpointPtr endpoint = mEndpointFactory->findByName(aorUser);
     SipEndpointSeq endpointSeq;
-    endpointSeq.push_back(endpoint);
+    if (endpoint)
+    {
+        endpointSeq.push_back(endpoint);
+    }
     return endpointSeq;
 }
 

-----------------------------------------------------------------------


-- 
asterisk-scf/release/sip.git



More information about the asterisk-scf-commits mailing list