diff options
| author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2009-11-30 15:16:03 +0000 |
|---|---|---|
| committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2009-11-30 15:16:03 +0000 |
| commit | 266e10bb73a87fa6be30b0d96f55ffc50a2a6501 (patch) | |
| tree | 3f98c444324deb89ec60a1e6f9ec325de35a35bf | |
| parent | 21db237e81b3ad041ef66a99a16159a8230871fe (diff) | |
| download | lasso-266e10bb73a87fa6be30b0d96f55ffc50a2a6501.tar.gz lasso-266e10bb73a87fa6be30b0d96f55ffc50a2a6501.tar.xz lasso-266e10bb73a87fa6be30b0d96f55ffc50a2a6501.zip | |
Add more check to remove_signature
* lasso/saml-2.0/profile.c:
check for NULL when accessing klass datas.
| -rw-r--r-- | lasso/saml-2.0/profile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lasso/saml-2.0/profile.c b/lasso/saml-2.0/profile.c index 807dc4dd..2a3376af 100644 --- a/lasso/saml-2.0/profile.c +++ b/lasso/saml-2.0/profile.c @@ -1040,7 +1040,7 @@ remove_signature(LassoNode *node) { if (node == NULL) return; klass = LASSO_NODE_GET_CLASS(node); - if (klass->node_data->sign_type_offset != 0) { + if (klass && klass->node_data && klass->node_data->sign_type_offset != 0) { G_STRUCT_MEMBER(LassoSignatureType, node,klass->node_data->sign_type_offset) = LASSO_SIGNATURE_TYPE_NONE; } |
