Merge branch 'master' into yaz-744
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 26 Feb 2014 08:58:54 +0000 (09:58 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 26 Feb 2014 08:58:54 +0000 (09:58 +0100)
1  2 
src/tcpip.c

diff --cc src/tcpip.c
@@@ -215,12 -205,8 +215,13 @@@ COMSTACK tcpip_type(int s, int flags, i
  #endif
  
  #if HAVE_GETADDRINFO
 +#if RESOLVER_THREAD
 +    sp->hoststr = 0;
 +    sp->pipefd[0] = sp->pipefd[1] = -1;
 +    sp->port = 0;
 +#endif
      sp->ai = 0;
+     sp->ai_connect = 0;
  #endif
      sp->altbuf = 0;
      sp->altsize = sp->altlen = 0;