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

Author: Raphael Coeffic <[email protected]>
Committer: Raphael Coeffic <[email protected]>
Date:   Tue Jun  4 12:11:34 2013 +0200

b/f: do not copy transport if not set in set_next_hop.

---

 core/sip/trans_layer.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/core/sip/trans_layer.cpp b/core/sip/trans_layer.cpp
index 03d2de8..77b62cb 100644
--- a/core/sip/trans_layer.cpp
+++ b/core/sip/trans_layer.cpp
@@ -732,7 +732,7 @@ int _trans_layer::set_next_hop(sip_msg* msg,
            *next_hop  = route_uri->host;
            if(route_uri->port_str.len)
                *next_port = route_uri->port;
-           if(route_uri->trsp->value.len)
+           if(route_uri->trsp && route_uri->trsp->value.len)
                *next_trsp = route_uri->trsp->value;
        }
     }

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

Reply via email to