[sr-dev] git:master: sdp parser: fix sdp payload attributes cloning

Ovidiu Sas osas at voipembedded.com
Fri May 14 21:08:58 CEST 2010


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

Author: Ovidiu Sas <osas at voipembedded.com>
Committer: Ovidiu Sas <osas at 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

---

 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 07ca839..3f0f6dc 100644
--- a/parser/sdp/sdp.c
+++ b/parser/sdp/sdp.c
@@ -894,7 +894,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);




More information about the sr-dev mailing list