Преглед на файлове

Make sure we actually zend zXXX option. Increase option buffer space
while I am here.

Maxim Sobolev преди 17 години
родител
ревизия
40f95dbdb2
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      modules_s/nathelper/nathelper.c

+ 2 - 1
modules_s/nathelper/nathelper.c

@@ -1983,7 +1983,7 @@ force_rtp_proxy(struct sip_msg *msg, char *param1, char *param2, int offer)
 	int create, port, len, asymmetric, flookup, argc, proxied, real, i;
 	int oidx, pf, pf1, force, c1_pf, rep_oidx;
 	unsigned int node_idx, oldport_i;
-	char opts[16];
+	char opts[32];
 	char rep_opts[16];
 	char *cp, *cp1;
 	char  *cpend, *next;
@@ -2293,6 +2293,7 @@ force_rtp_proxy(struct sip_msg *msg, char *param1, char *param2, int offer)
 					} else {
 						memcpy((char *)v[1].iov_base + v[1].iov_len,
 						    rep_opts, rep_oidx);
+						v[1].iov_len += rep_oidx;
 					}
 				}
 				cp = send_rtpp_command(node, v, (to_tag.len > 0) ? 16 : 12);