From 266e10bb73a87fa6be30b0d96f55ffc50a2a6501 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Mon, 30 Nov 2009 15:16:03 +0000 Subject: Add more check to remove_signature * lasso/saml-2.0/profile.c: check for NULL when accessing klass datas. --- lasso/saml-2.0/profile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit