bitcoin/bitcoin — pull request #4551 by Diapolo (2014-07-17 20:39:09+00:00)
Title: prevent SOCKET leack in BindListenPort()

- the call to CloseSocket() is placed after the WSAGetLastError(), because
a CloseSocket() can trigger an error also, which we don't need for the
logging in this two cases