small bug in InetSocketAddress deserialization

This commit is contained in:
Mathieu Lacage committed 2007-08-01 20:17:28 +02:00
1 parent ea46e29e24
commit 05fc743eb3
1 file changed
+1 -1
+1 -1
View File
@@ -67,7 +67,7 @@ InetSocketAddress::ConvertFrom (const Address &address)
uint8_t buf[6];
address.CopyTo (buf);
Ipv4Address ipv4 = Ipv4Address::Deserialize (buf);
uint16_t port = buf[0] | (buf[1] << 8);
uint16_t port = buf[4] | (buf[5] << 8);
return InetSocketAddress (ipv4, port);
}
uint8_t