Initialise (struct Socket_tag).connected in sk_register().
authorjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Mon, 14 Feb 2005 15:30:09 +0000 (15:30 +0000)
committerjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Mon, 14 Feb 2005 15:30:09 +0000 (15:30 +0000)
Again, the value could do with review.

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

unix/uxnet.c

index 0654050..addfc76 100644 (file)
@@ -418,6 +418,7 @@ Socket sk_register(OSSocket sockfd, Plug plug)
     ret->oobpending = FALSE;
     ret->listener = 0;
     ret->addr = NULL;
+    ret->connected = 1;
 
     ret->s = sockfd;