Null pointer bug.
authorcantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Thu, 17 Mar 2005 18:40:05 +0000 (18:40 +0000)
committercantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Thu, 17 Mar 2005 18:40:05 +0000 (18:40 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@1410 cb58f699-b61c-0410-a6fe-9272a202ed29

isapi_shib/isapi_shib.cpp

index 1c97f51..e12c1cd 100644 (file)
@@ -1013,8 +1013,7 @@ DWORD WriteClientError(LPEXTENSION_CONTROL_BLOCK lpECB, const char* msg)
 class ShibTargetIsapiE : public ShibTarget
 {
 public:
-  ShibTargetIsapiE(LPEXTENSION_CONTROL_BLOCK lpECB, const site_t& site) :
-    m_cookie(NULL)
+  ShibTargetIsapiE(LPEXTENSION_CONTROL_BLOCK lpECB, const site_t& site)
   {
     dynabuf ssl(5);
     GetServerVariable(lpECB,"HTTPS",ssl,5);
@@ -1155,16 +1154,16 @@ extern "C" DWORD WINAPI HttpExtensionProc(LPEXTENSION_CONTROL_BLOCK lpECB)
         if (map_i==g_Sites.end())
             return WriteClientError(lpECB, "Shibboleth Extension not configured for this web site.");
 
-       ShibTargetIsapiE ste(lpECB, map_i->second);
-       pair<bool,void*> res = ste.doHandleProfile();
-       if (res.first) return (DWORD)res.second;
-
-       return WriteClientError(lpECB, "Shibboleth Extension failed to process POST");
+        ShibTargetIsapiE ste(lpECB, map_i->second);
+        pair<bool,void*> res = ste.doHandleProfile();
+        if (res.first) return (DWORD)res.second;
+        
+        return WriteClientError(lpECB, "Shibboleth Extension failed to process request");
 
-    } catch (...) {
+    }
+    catch (...) {
       return WriteClientError(lpECB,
-                             "Shibboleth Extension caught an unknown error. "
-                             "Memory Failure?");
+                             "Shibboleth Extension caught an unknown error.");
     }
 
     // If we get here we've got an error.