tcpip: initialize ai_connect
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 26 Feb 2014 08:58:45 +0000 (09:58 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 26 Feb 2014 08:58:45 +0000 (09:58 +0100)
src/tcpip.c

index 4ca0683..ac0001e 100644 (file)
@@ -206,6 +206,7 @@ COMSTACK tcpip_type(int s, int flags, int protocol, void *vp)
 
 #if HAVE_GETADDRINFO
     sp->ai = 0;
 
 #if HAVE_GETADDRINFO
     sp->ai = 0;
+    sp->ai_connect = 0;
 #endif
     sp->altbuf = 0;
     sp->altsize = sp->altlen = 0;
 #endif
     sp->altbuf = 0;
     sp->altsize = sp->altlen = 0;