Send async flag only on front-channel
authorscantor <scantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Tue, 10 Jul 2012 18:40:50 +0000 (18:40 +0000)
committerscantor <scantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Tue, 10 Jul 2012 18:40:50 +0000 (18:40 +0000)
git-svn-id: https://svn.shibboleth.net/cpp-sp/branches/REL_2@3729 cb58f699-b61c-0410-a6fe-9272a202ed29

shibsp/handler/impl/SAML2LogoutInitiator.cpp

index a97e1e8..05d1e88 100644 (file)
@@ -530,7 +530,7 @@ auto_ptr<LogoutRequest> SAML2LogoutInitiator::buildRequest(
     msg->setID(SAMLConfig::getConfig().generateIdentifier());
     msg->setIssueInstant(time(nullptr));
 
-    if (m_async) {
+    if (m_async && encoder) {
         msg->setExtensions(saml2p::ExtensionsBuilder::buildExtensions());
         msg->getExtensions()->getUnknownXMLObjects().push_back(AsynchronousBuilder::buildAsynchronous());
     }