[ID-FFv1.2] make lasso_login_process_authn_request_msg() return LASSO_PROFILE_ERROR_INVALID_MSG if received request is not a lib:AuthnRequest

This commit is contained in:
Benjamin Dauvergne 2010-10-06 10:39:18 +02:00
parent 7a27400a87
commit 58a3868361
1 changed files with 5 additions and 1 deletions

View File

@ -2030,7 +2030,11 @@ lasso_login_process_authn_request_msg(LassoLogin *login, const char *authn_reque
return critical_error(LASSO_PROFILE_ERROR_INVALID_MSG);
}
lasso_assign_new_gobject(profile->request, LASSO_NODE(request));
lasso_assign_new_gobject(profile->request, request);
if (! LASSO_IS_LIB_AUTHN_REQUEST(profile->request)) {
lasso_release_gobject(profile->request);
return LASSO_PROFILE_ERROR_INVALID_MSG;
}
/* get remote ProviderID */
lasso_assign_string(profile->remote_providerID,