Selaa lähdekoodia

core: init via_len to cope with no via update flag

Daniel-Constantin Mierla 16 vuotta sitten
vanhempi
commit
6be3dfe5d0
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      msg_translator.c

+ 1 - 0
msg_translator.c

@@ -1551,6 +1551,7 @@ char * build_req_buf_from_sip_req( struct sip_msg* msg,
 	received_buf=0;
 	received_buf=0;
 	rport_buf=0;
 	rport_buf=0;
 	line_buf=0;
 	line_buf=0;
+	via_len=0;
 
 
 	flags=msg->msg_flags|global_req_flags;
 	flags=msg->msg_flags|global_req_flags;
 	/* Calculate message body difference and adjust Content-Length */
 	/* Calculate message body difference and adjust Content-Length */