소스 검색

b/f: In case of IPv6 Option in the RTP-Command, the pointers and the length need to be updated.

Carsten Bock 13 년 전
부모
커밋
4f2f1e2d4f
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      modules/rtpproxy/rtpproxy.c

+ 3 - 0
modules/rtpproxy/rtpproxy.c

@@ -2150,6 +2150,9 @@ force_rtp_proxy(struct sip_msg* msg, char* str1, char* str2, int offer, int forc
 					LM_ERR("out of pkg memory\n");
 					FORCE_RTP_PROXY_RET (-1);
 				}
+				/* We need to update the pointers and the length here, it has changed. */
+				v[1].iov_base = opts.s.s;
+				v[1].iov_len = opts.oidx;
 			}
 			STR2IOVEC(newip, v[7]);
 			STR2IOVEC(oldport, v[9]);