X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=shibsp%2Fhandler%2Fimpl%2FSessionInitiator.cpp;h=d1eeffa3af1ad7c1963e5fa9c73cf55b10f5f081;hb=ee09581aa56617fd71770fea5afeae92ef03a652;hp=8ee76b3619a9718527e2d54383077531032a8e1a;hpb=29856de47622bd49c65d46b89fcfb7a41212d615;p=shibboleth%2Fsp.git diff --git a/shibsp/handler/impl/SessionInitiator.cpp b/shibsp/handler/impl/SessionInitiator.cpp index 8ee76b3..d1eeffa 100644 --- a/shibsp/handler/impl/SessionInitiator.cpp +++ b/shibsp/handler/impl/SessionInitiator.cpp @@ -161,7 +161,7 @@ pair 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()));