Initialise (struct Socket_tag).connected in sk_newlistener() since Valgrind
authorjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Mon, 14 Feb 2005 15:03:32 +0000 (15:03 +0000)
committerjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Mon, 14 Feb 2005 15:03:32 +0000 (15:03 +0000)
complained.
(I _think_ this is the correct initialisation.)

git-svn-id: svn://svn.tartarus.org/sgt/putty@5299 cda61777-01e9-0310-a592-d414129be87e

unix/uxnet.c

index 05f9f25..0654050 100644 (file)
@@ -678,6 +678,7 @@ Socket sk_newlistener(char *srcaddr, int port, Plug plug, int local_host_only, i
     ret->oobpending = FALSE;
     ret->listener = 1;
     ret->addr = NULL;
+    ret->connected = 0;
 
     /*
      * Translate address_family from platform-independent constants