diff options
| author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2009-04-27 08:19:22 +0000 |
|---|---|---|
| committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2009-04-27 08:19:22 +0000 |
| commit | 83ce945c5f6343e35fddc9bb6fdc6e8410b409af (patch) | |
| tree | c13cda909b1a4cb538a5b56f28c439cde2a48e07 | |
| parent | aec28fdac6fd87cb486e732fe5254b8affc687ed (diff) | |
lasso_login_init_request(): change error code for invalid artifacts
* lasso/id-ff/login.c:
if artifact is invalid return LASSO_PROFILE_ERROR_INVALID_ARTIFACT as
in lasso_saml20_profile_init_artifact_resolve().
| -rw-r--r-- | lasso/id-ff/login.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lasso/id-ff/login.c b/lasso/id-ff/login.c index ed33c65a..154c3839 100644 --- a/lasso/id-ff/login.c +++ b/lasso/id-ff/login.c @@ -1506,12 +1506,12 @@ lasso_login_init_request(LassoLogin *login, gchar *response_msg, i = xmlSecBase64Decode((xmlChar*)artifact_b64, (xmlChar*)artifact, 43); if (i < 0 || i > 42) { g_free(artifact_b64); - return LASSO_PROFILE_ERROR_BUILDING_REQUEST_FAILED; + return LASSO_PROFILE_ERROR_INVALID_ARTIFACT; } if (artifact[0] != 0 || artifact[1] != 3) { /* wrong type code */ g_free(artifact_b64); - return LASSO_PROFILE_ERROR_BUILDING_REQUEST_FAILED; + return LASSO_PROFILE_ERROR_INVALID_ARTIFACT; } memcpy(provider_succinct_id, artifact+2, 20); |
