[shibboleth-sp2] 15/82: SSPCPP-726 Fix condition's scoping

Etienne Dysli Metref edm-guest at moszumanska.debian.org
Thu Nov 16 08:16:20 UTC 2017


This is an automated email from the git hooks/post-receive script.

edm-guest pushed a commit to branch master
in repository shibboleth-sp2.

commit 5dcb0eef4bc42bffc73b91a79a4395087469532d
Author: Rod Widdowson <rdw at steadingsoftware.com>
Date:   Tue Feb 14 11:35:34 2017 +0000

    SSPCPP-726 Fix condition's scoping
    
    https://issues.shibboleth.net/jira/browse/SSPCPP-726
---
 shibsp/handler/impl/ExternalAuthHandler.cpp | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/shibsp/handler/impl/ExternalAuthHandler.cpp b/shibsp/handler/impl/ExternalAuthHandler.cpp
index c17ca1f..e6faca9 100644
--- a/shibsp/handler/impl/ExternalAuthHandler.cpp
+++ b/shibsp/handler/impl/ExternalAuthHandler.cpp
@@ -592,8 +592,10 @@ pair<bool,long> ExternalAuth::processMessage(
             }
         }
         os << " ]";
-        if (!target.empty())
-            os << ", \"RelayState\": "; json_safe(os, target.c_str());
+        if (!target.empty()) {
+            os << ", \"RelayState\": ";
+            json_safe(os, target.c_str());
+        }
         os << " }";
     }
     else {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-shibboleth/shibboleth-sp2.git



More information about the Pkg-shibboleth-devel mailing list