# HG changeset patch # User terom # Date 1229459435 0 # Node ID 2a8e780844d2c60c877b5ef3d97af87cdb77d646 # Parent 5589abf5e61b8886c5fdd36477dca72f336ea57d fix some NetworkAddress omissions diff -r 5589abf5e61b -r 2a8e780844d2 src/Network/Address.cc --- a/src/Network/Address.cc Mon Dec 15 23:56:42 2008 +0000 +++ b/src/Network/Address.cc Tue Dec 16 20:30:35 2008 +0000 @@ -22,7 +22,7 @@ } NetworkAddress::NetworkAddress (const sockaddr *addr, socklen_t len) : - hostname(hostname), service(service), address_length(0) + hostname(), service(), address_length(0) { // proxy to set_sockaddr set_sockaddr(addr, len); @@ -79,6 +79,10 @@ // copy over to address memcpy(&this->address, addr, len); + + // and the hostname + service + hostname = host_buf; + service = serv_buf; } std::ostream& operator<< (std::ostream &s, const NetworkAddress &addr) {