Module: sip-router
Branch: ser_core_cvs
Commit: 5e06f219ce6d3c0572c31cd5fe0efff004e596fb
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=5e06f21…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Wed Jul 15 00:12:03 2009 +0000
core: interface names in socket list port fix
Due to an unfortunate typo, the port number was always set to 5060
for a listen address containing an interface name (e.g.
-l eth0:5070 or -l udp:eth1:5062).
---
socket_info.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/socket_info.c b/socket_info.c
index 46a57f5..0fc0c8f 100644
--- a/socket_info.c
+++ b/socket_info.c
@@ -870,7 +870,7 @@ static int addr_info_to_si_lst(struct addr_info* ai_lst, unsigned
short port,
struct addr_info* ail;
for (ail=ai_lst; ail; ail=ail->next){
- if(new_sock2list(ail->name.s, 0, port_no, proto, ail->flags | flags,
+ if(new_sock2list(ail->name.s, 0, port, proto, ail->flags | flags,
list)==0)
return -1;
}
@@ -892,7 +892,7 @@ static int addr_info_to_si_lst_after(struct addr_info* ai_lst,
struct socket_info* new_si;
for (ail=ai_lst; ail; ail=ail->next){
- if((new_si=new_sock2list_after(ail->name.s, 0, port_no, proto,
+ if((new_si=new_sock2list_after(ail->name.s, 0, port, proto,
ail->flags | flags, el))==0)
return -1;
el=new_si;