X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FSocket.hh;h=a0f2a7cae65bf2da03ee8b57af64f6b754e06c19;hp=6b0fa88fa6bbe7a72c52eef4773687f217c4a351;hb=19d555013569026c9e68784ea560cd2e5a21bc5e;hpb=61e441a6b4b7c4b2b14b12a1a2545a04155c719b diff --git a/src/Moof/Socket.hh b/src/Moof/Socket.hh index 6b0fa88..a0f2a7c 100644 --- a/src/Moof/Socket.hh +++ b/src/Moof/Socket.hh @@ -202,11 +202,10 @@ public: service.length() > 0 ? service.c_str() : 0, &hints, &list); if (status == 0) { - struct addrinfo* addr = list; - while (addr != 0) + for (struct addrinfo* addr = list; + addr != 0; addr = addr->ai_next) { resolved.push_back(SocketAddress(addr, name)); - addr = addr->ai_next; } freeaddrinfo(list);