[cpp-sp] 03/09: SSPCPP-726 Fix condition's scoping
Scott Cantor
cantor.2 at osu.edu
Mon Nov 13 11:46:27 EST 2017
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch maint-2.6
in repository cpp-sp.
View the commit online:
http://git.shibboleth.net/view/?p=cpp-sp.git;a=commit;h=ad1a68151065738fbe940897976b7a5418477697
commit ad1a68151065738fbe940897976b7a5418477697
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: 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 {
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list