svn commit: trunk/busybox/libbb
vda at busybox.net
vda at busybox.net
Sat Jan 13 21:05:38 UTC 2007
Author: vda
Date: 2007-01-13 13:05:38 -0800 (Sat, 13 Jan 2007)
New Revision: 17264
Log:
small fixes to ipv6 infrastructure
Modified:
trunk/busybox/libbb/xconnect.c
Changeset:
Modified: trunk/busybox/libbb/xconnect.c
===================================================================
--- trunk/busybox/libbb/xconnect.c 2007-01-12 22:10:34 UTC (rev 17263)
+++ trunk/busybox/libbb/xconnect.c 2007-01-13 21:05:38 UTC (rev 17264)
@@ -48,6 +48,7 @@
port_nr = bb_strtou(port, NULL, 10);
if (errno || port_nr > 65535) {
struct servent *tserv = getservbyname(port, protocol);
+ port_nr = default_port;
if (tserv)
port_nr = ntohs(tserv->s_port);
}
@@ -213,6 +214,7 @@
fd = xsocket(lsa->sa.sa_family, SOCK_STREAM, 0);
} else {
fd = xsocket_stream(&lsa);
+ set_nport(lsa, htons(port));
}
setsockopt_reuseaddr(fd);
xbind(fd, &lsa->sa, lsa->len);
More information about the busybox-cvs
mailing list