Tatsuhiro Tsujikawa 20 年之前
父節點
當前提交
0d64183c49
共有 2 個文件被更改,包括 4 次插入1 次删除
  1. 4 0
      ChangeLog
  2. 0 1
      src/SocketCore.cc

+ 4 - 0
ChangeLog

@@ -1,3 +1,7 @@
+2006-03-17  Tatsuhiro Tsujikawa  <tujikawa at rednoah dot com>
+
+	* SocketCore.cc: remove the assignment of addrinfo.ai_addr.
+
 2006-03-09  Tatsuhiro Tsujikawa  <tujikawa at rednoah dot com>
 
 	* ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,

+ 0 - 1
src/SocketCore.cc

@@ -134,7 +134,6 @@ void SocketCore::establishConnection(string host, int port) {
     ai.ai_family = PF_INET;
     ai.ai_socktype = SOCK_STREAM;
     ai.ai_protocol = 0; 
-    ai.ai_addr = (struct sockaddr*)&sockaddr;
     struct addrinfo* res;
     int ec;
     if((ec = getaddrinfo(host.c_str(), NULL, &ai, &res)) != 0) {