Module: sip-router
Branch: master
Commit: ae051ee22a054120b7469cd17d71325a5f5c3cac
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=ae051ee…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Sat May 28 23:25:56 2011 +0200
rtpproxy: safety check for T_UNDEFINED
- be sure the T is valid before setting SDP flag in uas.request
---
modules/rtpproxy/rtpproxy.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/rtpproxy/rtpproxy.c b/modules/rtpproxy/rtpproxy.c
index 3807954..f6f018f 100644
--- a/modules/rtpproxy/rtpproxy.c
+++ b/modules/rtpproxy/rtpproxy.c
@@ -1729,7 +1729,8 @@ rtpproxy_manage(struct sip_msg *msg, char *flags, char *ip)
(ip!=NULL)?1:0);
if(method==METHOD_INVITE && nosdp==0) {
msg->msg_flags |= FL_SDP_BODY;
- if(tmb.t_gett!=NULL && tmb.t_gett()!=NULL)
+ if(tmb.t_gett!=NULL && tmb.t_gett()!=NULL
+ && tmb.t_gett()!=T_UNDEFINED)
tmb.t_gett()->uas.request->msg_flags |= FL_SDP_BODY;
if(route_type==FAILURE_ROUTE)
return unforce_rtp_proxy_f(msg, 0, 0);