[cpp-sp] branch main updated: Fix bug in dynamic cast check.

Codeberg noreply at shibboleth.net
Thu Dec 4 21:36:45 UTC 2025


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

codeberg pushed a commit to branch main
in repository cpp-sp.

View the commit online:
https://codeberg.org/Shibboleth/cpp-sp/commit/10258b4f02f6109d3d58391d7f58513340c5f06b

The following commit(s) were added to refs/heads/main by this push:
     new 10258b4f Fix bug in dynamic cast check.
10258b4f is described below

commit 10258b4f02f6109d3d58391d7f58513340c5f06b
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Thu Dec 4 16:36:32 2025 -0500

    Fix bug in dynamic cast check.
---
 shibsp/Agent.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/shibsp/Agent.cpp b/shibsp/Agent.cpp
index afe05276..407474f5 100644
--- a/shibsp/Agent.cpp
+++ b/shibsp/Agent.cpp
@@ -74,7 +74,7 @@ long Agent::handleError(Category& log, SPRequest& request, const Session* sessio
 
     AgentException* richEx = dynamic_cast<AgentException*>(ex);
 
-    if (ex) {
+    if (richEx) {
         // Populate target if needed.
         if (!richEx->getProperty("target")) {
             richEx->addProperty("target", request.getRequestURL());

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list