diff options
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/netlib/netlibopenconn.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/netlib/netlibopenconn.cpp b/src/modules/netlib/netlibopenconn.cpp index 0e40641eec..7b9a892782 100644 --- a/src/modules/netlib/netlibopenconn.cpp +++ b/src/modules/netlib/netlibopenconn.cpp @@ -782,6 +782,10 @@ bool NetlibDoConnect(NetlibConnection *nlc) bool NetlibReconnect(NetlibConnection *nlc) { + // a connection might be freed already + if (GetNetlibHandleType(nlc) != NLH_CONNECTION) + return false; + char buf[4]; bool opened = nlc->s != INVALID_SOCKET; if (opened) { |