Browse code

sdp parser: fix sdp payload attributes cloning

- ptime attribute was not computed while allocating space
for the cloned attributes
(cherry picked from commit f1944ead66d854c349fca67da2b13d2be3c7fc33)

Ovidiu Sas authored on 14/05/2010 19:05:17 • Andrei Pelinescu-Onciul committed on 28/05/2010 18:47:00
Showing 1 changed files
... ...
@@ -916,7 +916,8 @@ sdp_payload_attr_t * clone_sdp_payload_attr(sdp_payload_attr_t *attr)
916 916
 			attr->rtp_enc.len +
917 917
 			attr->rtp_clock.len +
918 918
 			attr->rtp_params.len +
919
-			attr->sendrecv_mode.len;
919
+			attr->sendrecv_mode.len +
920
+			attr->ptime.len;
920 921
 	clone_attr = (sdp_payload_attr_t*)shm_malloc(len);
921 922
 	if (clone_attr == NULL) {
922 923
 		LM_ERR("no more shm mem (%d)\n",len);