From cf4885f2ce9290cf7716503280bd2c671b6977a5 Mon Sep 17 00:00:00 2001 From: Andrew Pogrebennyk Date: Tue, 4 Sep 2012 15:23:49 +0000 Subject: [PATCH] merge [f5997ba] b/f: In case of IPv6 Option in the RTP-Command, the pointers and the length need to be updated. --- modules/rtpproxy/rtpproxy.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/rtpproxy/rtpproxy.c b/modules/rtpproxy/rtpproxy.c index 3f7c7af5b..f28876555 100644 --- a/modules/rtpproxy/rtpproxy.c +++ b/modules/rtpproxy/rtpproxy.c @@ -2217,6 +2217,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[9]); STR2IOVEC(oldport, v[11]);