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:
ea7c7d8
)
cleanup
author
Luke Howard
<lukeh@padl.com>
Mon, 13 Sep 2010 14:57:50 +0000
(16:57 +0200)
committer
Luke Howard
<lukeh@padl.com>
Mon, 13 Sep 2010 14:57:50 +0000
(16:57 +0200)
util_saml.cpp
patch
|
blob
|
history
diff --git
a/util_saml.cpp
b/util_saml.cpp
index
34e494a
..
4d07af1
100644
(file)
--- a/
util_saml.cpp
+++ b/
util_saml.cpp
@@
-489,14
+489,13
@@
OM_uint32
samlReleaseAttrContext(OM_uint32 *minor,
struct eap_gss_saml_attr_ctx **pCtx)
{
- eap_gss_saml_attr_ctx *ctx = *pCtx;
-
- if (ctx != NULL) {
- delete ctx;
+ try {
+ delete *pCtx;
*pCtx = NULL;
+ } catch (exception &e) {
+ return mapException(minor, e);
}
- *minor = 0;
return GSS_S_COMPLETE;
}