[SAMLv2] also initialize Destination for response messages

asynchronous bindings needs Destination attribute even for response
messages.
This commit is contained in:
Benjamin Dauvergne 2010-09-30 10:58:50 +02:00
parent 7386dc8189
commit 4c3af26a58
1 changed files with 5 additions and 0 deletions

View File

@ -1248,6 +1248,11 @@ lasso_saml20_profile_build_response_msg(LassoProfile *profile, char *service,
}
}
if (url) {
lasso_assign_string(((LassoSamlp2StatusResponse*)profile->response)->Destination,
url);
}
switch (method) {
case LASSO_HTTP_METHOD_POST:
rc = lasso_saml20_profile_build_post_response_msg(profile, url);