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

Author: Jason Penton <[email protected]>
Committer: Jason Penton <[email protected]>
Date:   Wed Apr 30 10:43:58 2014 +0200

modules/ims_qos: port in flow control media sub component is clipped becuase of 
lack of space in buffer for nul terminator

---

 modules/ims_qos/rx_avp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/ims_qos/rx_avp.c b/modules/ims_qos/rx_avp.c
index 65c8a43..e2751aa 100644
--- a/modules/ims_qos/rx_avp.c
+++ b/modules/ims_qos/rx_avp.c
@@ -548,7 +548,7 @@ AAA_AVP *rx_create_media_subcomponent_avp(int number, char* 
proto,
     int intportB = atoi(portB->s);
 
     len = (permit_out.len + from_s.len + to_s.len + ipB->len + ipA->len + 4 +
-            proto_len + portA->len + portB->len) * sizeof (char);
+            proto_len + portA->len + portB->len + 1/*nul terminator*/) * 
sizeof (char);
 
     if (!flowdata_buf.s || flowdata_buflen < len) {
         if (flowdata_buf.s)


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to