From 05fc743eb379e24a121d7e752e9cea32fd993a2d Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Wed, 1 Aug 2007 20:17:28 +0200 Subject: [PATCH] small bug in InetSocketAddress deserialization --- src/node/inet-socket-address.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/inet-socket-address.cc b/src/node/inet-socket-address.cc index 232e9215f..b51ca0398 100644 --- a/src/node/inet-socket-address.cc +++ b/src/node/inet-socket-address.cc @@ -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