summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2020-04-22 02:30:27 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2020-04-22 02:30:27 (GMT)
commit55feba5762d78cdbbad8b738eb975b791537a004 (patch)
tree3c80b1a3a4efa79ae6a56ef307d5d290acb1724b
parente5ad4b1702af09b271165ebf0187ec5ec75a5497 (diff)
downloadlasso-55feba5762d78cdbbad8b738eb975b791537a004.zip
lasso-55feba5762d78cdbbad8b738eb975b791537a004.tar.gz
lasso-55feba5762d78cdbbad8b738eb975b791537a004.tar.bz2
Clear SessionIndex when private SessionIndexes is empty (#41950)
-rw-r--r--lasso/xml/saml-2.0/samlp2_logout_request.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lasso/xml/saml-2.0/samlp2_logout_request.c b/lasso/xml/saml-2.0/samlp2_logout_request.c
index 0702709..e1f20d4 100644
--- a/lasso/xml/saml-2.0/samlp2_logout_request.c
+++ b/lasso/xml/saml-2.0/samlp2_logout_request.c
@@ -274,6 +274,8 @@ lasso_samlp2_logout_request_set_session_indexes(LassoSamlp2LogoutRequest *logout
GList *last = g_list_last(pv->SessionIndex);
lasso_assign_new_string(logout_request->SessionIndex, (char*) last->data);
pv->SessionIndex = g_list_delete_link(pv->SessionIndex, last);
+ } else {
+ lasso_release_string(logout_request->SessionIndex);
}
}