From 23d961fe71652b59186368bf1458cf563a5ef646 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Thu, 31 Jul 2014 13:36:03 -0400 Subject: [PATCH] Missing variable initialization If name_id s unconditonally dereferenced in the cleanup code. If it is not initialized it may cause segfaults or other misbehaviors. License: MIT Signed-off-by: Simo Sorce --- lasso/id-ff/session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lasso/id-ff/session.c b/lasso/id-ff/session.c index 4cb3e2b8..9446e285 100644 --- a/lasso/id-ff/session.c +++ b/lasso/id-ff/session.c @@ -858,7 +858,7 @@ init_from_xml_nid_and_session_index(LassoNode *node, xmlNode *nid_and_session_in xmlChar *provider_id = NULL; xmlChar *assertion_id = NULL; xmlNode *nid; - LassoNode *name_id; + LassoNode *name_id = NULL; struct _NidAndSessionIndex *nid_and_session_index; provider_id = xmlGetProp(nid_and_session_index_node, BAD_CAST PROVIDER_ID);