Mercurial > hg > freeDiameter
diff freeDiameter/sctp.c @ 590:da93c7a5e1d0
Fix SCTP port when ListenOn is set (Patch by Vlada) - closes #20
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Mon, 01 Nov 2010 09:43:06 +0900 |
parents | 65efe8ff2c30 |
children |
line wrap: on
line diff
--- a/freeDiameter/sctp.c Thu Oct 28 16:32:38 2010 +0900 +++ b/freeDiameter/sctp.c Mon Nov 01 09:43:06 2010 +0900 @@ -730,7 +730,7 @@ int count = 0; /* number of sock addr in the array */ /* Create the array of configured addresses */ - CHECK_FCT( add_addresses_from_list_mask((void *)&sar, &sz, &count, family, port, list, EP_FL_CONF, EP_FL_CONF) ); + CHECK_FCT( add_addresses_from_list_mask((void *)&sar, &sz, &count, family, htons(port), list, EP_FL_CONF, EP_FL_CONF) ); if (!count) { /* None of the addresses in the list came from configuration, we bind to default */