Browse code

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

Carsten Bock authored on 03/09/2012 19:31:58
Showing 1 changed files
... ...
@@ -2091,6 +2091,9 @@ force_rtp_proxy(struct sip_msg* msg, char* str1, char* str2, int offer)
2091 2091
 					LM_ERR("out of pkg memory\n");
2092 2092
 					FORCE_RTP_PROXY_RET (-1);
2093 2093
 				}
2094
+				/* We need to update the pointers and the length here, it has changed. */
2095
+				v[1].iov_base = opts.s.s;
2096
+				v[1].iov_len = opts.oidx;
2094 2097
 			}
2095 2098
 			STR2IOVEC(newip, v[7]);
2096 2099
 			STR2IOVEC(oldport, v[9]);