projects
/
mech_eap.orig
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
277fae4
)
Don't crash if there are zero valued attributes
author
Luke Howard
<lukeh@padl.com>
Sun, 3 Apr 2011 07:57:09 +0000
(17:57 +1000)
committer
Luke Howard
<lukeh@padl.com>
Sun, 3 Apr 2011 08:00:48 +0000
(18:00 +1000)
util_saml.cpp
patch
|
blob
|
history
util_shib.cpp
patch
|
blob
|
history
diff --git
a/util_saml.cpp
b/util_saml.cpp
index
fd84e44
..
26bf544
100644
(file)
--- a/
util_saml.cpp
+++ b/
util_saml.cpp
@@
-662,7
+662,7
@@
gss_eap_saml_attr_provider::getAttribute(const gss_buffer_t attr,
if (i == -1)
i = 0;
-
else
if (i >= nvalues)
+ if (i >= nvalues)
return false;
#ifdef __APPLE__
av = (const saml2::AttributeValue *)((void *)(a->getAttributeValues().at(i)));
diff --git
a/util_shib.cpp
b/util_shib.cpp
index
07ee06c
..
778ad25
100644
(file)
--- a/
util_shib.cpp
+++ b/
util_shib.cpp
@@
-331,7
+331,7
@@
gss_eap_shib_attr_provider::getAttribute(const gss_buffer_t attr,
if (i == -1)
i = 0;
-
else
if (i >= nvalues)
+ if (i >= nvalues)
return false;
buf.value = (void *)shibAttr->getSerializedValues()[*more].c_str();