96dbd38 net: initialize socket to avoid closing random fd's (Cory Fields)
Pull request description:
An excellent spot by @david60. Even if it isn't causing the fd issue we're looking for, this should be fixed.
Backport of Core PR 12326
Reviewer note: setting hSocket = INVALID_SOCKET was already backported.