Browse Source

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

Jason Penton 11 years ago
parent
commit
1d8215d820
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/ims_qos/rx_avp.c

+ 1 - 1
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)