Fix setting target port in get_interface_address6

We want to use the discard port correctly, so a htons() was missing.
Also we need to set it correctly depending on address family.

Review provided by danieldg
This commit is contained in:
Sebastian Hahn
2011-03-05 15:20:55 +01:00
parent 865ea5d263
commit f83debb51d
2 changed files with 9 additions and 3 deletions
+5 -1
View File
@@ -1,3 +1,7 @@
o Minor bugfixes:
- Fix connect() failures on some platforms (BSD, OS X). Bugfix on
0.2.0.3-alpha; fixes bug 2660. Patch by piebeer.
0.2.0.3-alpha; fixes first part of bug 2660. Patch by piebeer.
- Set target port in get_interface_address6() correctly. Bugfix
on 0.1.1.4-alpha and 0.2.0.3-alpha; fixes second part of bug
2660.