Module: sip-router
Branch: kamailio_3.0
Commit: a65b81983cf8ab90a4c40c8698ad1033bcdf205e
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=a65b819…
Author: Ovidiu Sas <osas(a)voipembedded.com>
Committer: Ovidiu Sas <osas(a)voipembedded.com>
Date: Fri May 14 15:05:17 2010 -0400
sdp parser: fix sdp payload attributes cloning
- ptime attribute was not computed while allocating space
for the cloned attributes
(cherry picked from commit f1944ead66d854c349fca67da2b13d2be3c7fc33)
---
parser/sdp/sdp.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/parser/sdp/sdp.c b/parser/sdp/sdp.c
index 4a6697f..eab972f 100644
--- a/parser/sdp/sdp.c
+++ b/parser/sdp/sdp.c
@@ -916,7 +916,8 @@ sdp_payload_attr_t * clone_sdp_payload_attr(sdp_payload_attr_t *attr)
attr->rtp_enc.len +
attr->rtp_clock.len +
attr->rtp_params.len +
- attr->sendrecv_mode.len;
+ attr->sendrecv_mode.len +
+ attr->ptime.len;
clone_attr = (sdp_payload_attr_t*)shm_malloc(len);
if (clone_attr == NULL) {
LM_ERR("no more shm mem (%d)\n",len);