Browse code

- fixed set_advertised_port

Andrei Pelinescu-Onciul authored on 25/08/2006 14:02:33
Showing 1 changed files
... ...
@@ -666,7 +666,7 @@ static inline int lumps_len(struct sip_msg* msg, struct lump* lumps, struct sock
666 666
 	else
667 667
 		send_address_str=&(send_sock->address_str);
668 668
 	if (msg->set_global_port.len)
669
-		send_port_str=&(msg->set_global_address);
669
+		send_port_str=&(msg->set_global_port);
670 670
 	else
671 671
 		send_port_str=&(send_sock->port_no_str);
672 672
 	
... ...
@@ -1018,7 +1018,7 @@ static inline void process_lumps(	struct sip_msg* msg,
1018 1018
 	else
1019 1019
 		send_address_str=&(send_sock->address_str);
1020 1020
 	if (msg->set_global_port.len)
1021
-		send_port_str=&(msg->set_global_address);
1021
+		send_port_str=&(msg->set_global_port);
1022 1022
 	else
1023 1023
 		send_port_str=&(send_sock->port_no_str);
1024 1024