fix segfault in saml-2.0/provider.c:load_endpoint_type2
Thanks to Hiromitsu Fujita for the patch. fixes #1582.
This commit is contained in:
parent
050afd2246
commit
e94015f8bc
|
@ -180,7 +180,7 @@ load_endpoint_type2(xmlNode *xmlnode, LassoProvider *provider, LassoProviderRole
|
|||
}
|
||||
indexed_endpoint = checkSaml2MdNode(xmlnode, LASSO_SAML2_METADATA_ELEMENT_ASSERTION_CONSUMER_SERVICE);
|
||||
if (indexed_endpoint) {
|
||||
if (! xsdUnsignedShortParse(index, &idx)) {
|
||||
if (! index || ! xsdUnsignedShortParse(index, &idx)) {
|
||||
warning("Invalid AssertionConsumerService, no index set");
|
||||
goto cleanup;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue