[xml] fix null pointer access in lasso_node_get_encryption

This commit is contained in:
Benjamin Dauvergne 2010-12-22 11:03:52 +01:00
parent fb37b807a7
commit d69649cc5d
1 changed files with 1 additions and 1 deletions

View File

@ -1081,7 +1081,7 @@ lasso_node_get_encryption(LassoNode *node, xmlSecKey **encryption_public_key,
g_return_if_fail(LASSO_IS_NODE(node));
custom_element = _lasso_node_get_custom_element(node);
if (custom_element->encryption_public_key) {
if (custom_element && custom_element->encryption_public_key) {
lasso_assign_sec_key(*encryption_public_key,
custom_element->encryption_public_key);
*encryption_sym_key_type = custom_element->encryption_sym_key_type;