1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-03-12 18:13:50 -05:00

Initialise (struct Socket_tag).connected in sk_newlistener() since Valgrind

complained.
(I _think_ this is the correct initialisation.)

[originally from svn r5299]
This commit is contained in:
Jacob Nevins 2005-02-14 15:03:32 +00:00
parent 63784f3f9a
commit 01c4c363d9

View 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