Forgot to store off pointers.
authorcantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Wed, 22 Jun 2005 18:51:44 +0000 (18:51 +0000)
committercantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Wed, 22 Jun 2005 18:51:44 +0000 (18:51 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@1726 cb58f699-b61c-0410-a6fe-9272a202ed29

shib-target/ArtifactMapper.cpp

index 9efae08..6a4da6e 100644 (file)
@@ -100,7 +100,7 @@ SAMLBrowserProfile::ArtifactMapper::ArtifactMapperResponse STArtifactMapper::map
                 if (amr.binding) {
                     auto_ptr_char loc(ep->getLocation());
                     amr.endpoint = loc.get();
-                    amr.callCtx = new ShibHTTPHook::ShibHTTPHookCallContext(credUse ? credUse->getString("TLS").second : NULL,idp);
+                    amr.callCtx = m_ctx = new ShibHTTPHook::ShibHTTPHookCallContext(credUse ? credUse->getString("TLS").second : NULL,idp);
                     return amr;
                 }
             }
@@ -123,7 +123,7 @@ SAMLBrowserProfile::ArtifactMapper::ArtifactMapperResponse STArtifactMapper::map
                         amr.binding = m_app->getBinding(ep->getBinding());
                         if (amr.binding) {
                             amr.endpoint = loc.get();
-                            amr.callCtx = new ShibHTTPHook::ShibHTTPHookCallContext(credUse ? credUse->getString("TLS").second : NULL,idp);
+                            amr.callCtx = m_ctx = new ShibHTTPHook::ShibHTTPHookCallContext(credUse ? credUse->getString("TLS").second : NULL,idp);
                             return amr;
                         }
                     }