From 8ed8b8bee2fa6abdfaa4b92543070baef0f340cb Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 23 Oct 2013 19:03:18 +0000 Subject: - fix for the old & nasty bug in netlib that rarely crashed Facebook & VK - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@6602 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/netlib/netlibhttp.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/modules/netlib/netlibhttp.cpp') diff --git a/src/modules/netlib/netlibhttp.cpp b/src/modules/netlib/netlibhttp.cpp index 9aafc3d066..1022e63e69 100644 --- a/src/modules/netlib/netlibhttp.cpp +++ b/src/modules/netlib/netlibhttp.cpp @@ -839,6 +839,9 @@ INT_PTR NetlibHttpTransaction(WPARAM wParam, LPARAM lParam) return 0; } + if (nlhr->nlc != NULL && GetNetlibHandleType(nlhr->nlc) != NLH_CONNECTION) + nlhr->nlc = NULL; + NetlibConnection* nlc = NetlibHttpProcessUrl(nlhr, nlu, (NetlibConnection*)nlhr->nlc); if (nlc == NULL) return 0; -- cgit v1.2.3