Fix duplicate variable decl.
authorcantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Tue, 2 Feb 2010 18:33:35 +0000 (18:33 +0000)
committercantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Tue, 2 Feb 2010 18:33:35 +0000 (18:33 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/branches/REL_2@3228 cb58f699-b61c-0410-a6fe-9272a202ed29

shibsp/handler/impl/SessionInitiator.cpp

index 8ee76b3..d1eeffa 100644 (file)
@@ -161,7 +161,7 @@ pair<bool,long> SessionInitiator::run(SPRequest& request, bool isHandler) const
                 // Log it and attempt to recover relay state so we can get back.
                 log(SPRequest::SPError, ex.what());
                 log(SPRequest::SPInfo, "trapping SessionInitiator error condition and returning to target location");
-                const char* flag = request.getParameter("target");
+                flag = request.getParameter("target");
                 string target(flag ? flag : "");
                 recoverRelayState(request.getApplication(), request, request, target, false);
                 return make_pair(true, request.sendRedirect(target.c_str()));