winverbs: initialize Endpoint QP member variable
authorshefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 11 Jun 2009 04:21:22 +0000 (04:21 +0000)
committershefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 11 Jun 2009 04:21:22 +0000 (04:21 +0000)
If an Endpoint is created, but never used to connect, it will crash trying to dereference m_pQp during destruction.  Initialize the value to NULL.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@2249 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

core/winverbs/user/wv_ep.cpp

index 5db0413..31a3dfe 100644 (file)
@@ -51,6 +51,7 @@ CWVConnectEndpoint::CWVConnectEndpoint(CWVProvider *pProvider)
        m_pProvider = pProvider;\r
        m_hFile = pProvider->m_hFile;\r
        m_Socket = INVALID_SOCKET;\r
+       m_pQp = NULL;\r
 }\r
 \r
 STDMETHODIMP CWVConnectEndpoint::\r