projects
/
shibboleth
/
cpp-sp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
548e82a
)
Check for null session.
author
Scott Cantor
<cantor.2@osu.edu>
Mon, 31 Oct 2005 18:10:19 +0000
(18:10 +0000)
committer
Scott Cantor
<cantor.2@osu.edu>
Mon, 31 Oct 2005 18:10:19 +0000
(18:10 +0000)
xmlproviders/XMLAccessControl.cpp
patch
|
blob
|
history
diff --git
a/xmlproviders/XMLAccessControl.cpp
b/xmlproviders/XMLAccessControl.cpp
index
be0e744
..
a30d89d
100644
(file)
--- a/
xmlproviders/XMLAccessControl.cpp
+++ b/
xmlproviders/XMLAccessControl.cpp
@@
-130,6
+130,10
@@
bool Rule::authorized(ShibTarget* st, ISessionCacheEntry* entry) const
st->log(ShibTarget::LogLevelWarn, string("AccessControl plugin didn't recognize rule (") + m_alias + "), check AAP for corresponding Alias");
return false;
}
+ else if (!entry) {
+ st->log(ShibTarget::LogLevelWarn, "AccessControl plugin not given a valid session to evaluate, are you using lazy sessions?");
+ return false;
+ }
// Find the corresponding attribute. This isn't very efficient...
ISessionCacheEntry::CachedResponse cr=entry->getResponse();