diff options
| author | Frederic Peters <fpeters@entrouvert.com> | 2005-04-18 10:57:24 +0000 |
|---|---|---|
| committer | Frederic Peters <fpeters@entrouvert.com> | 2005-04-18 10:57:24 +0000 |
| commit | 922644867cffcccc73ad181cd7909eed5cfe0fe3 (patch) | |
| tree | d42ad6a87780015daf5198314e2dd55badf183ca | |
| parent | 32c3311ee2ed1a6d0aea0d27b97df9335f4ca929 (diff) | |
| download | lasso-922644867cffcccc73ad181cd7909eed5cfe0fe3.tar.gz lasso-922644867cffcccc73ad181cd7909eed5cfe0fe3.tar.xz lasso-922644867cffcccc73ad181cd7909eed5cfe0fe3.zip | |
bails out with an error if lasso_login_must_authenticate is called while login
has no request; this probably means it was called before
lasso_login_process_authn_request_msg.
| -rw-r--r-- | lasso/id-ff/login.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lasso/id-ff/login.c b/lasso/id-ff/login.c index 9abf1ad6..aa5f53aa 100644 --- a/lasso/id-ff/login.c +++ b/lasso/id-ff/login.c @@ -1180,6 +1180,9 @@ lasso_login_must_authenticate(LassoLogin *login) g_return_val_if_fail(LASSO_IS_LOGIN(login), LASSO_PARAM_ERROR_BAD_TYPE_OR_NULL_OBJ); request = LASSO_LIB_AUTHN_REQUEST(LASSO_PROFILE(login)->request); + if (request == NULL) { + return critical_error(LASSO_PROFILE_ERROR_MISSING_REQUEST); + } /* get IsPassive and ForceAuthn in AuthnRequest if exists */ if ((request->ForceAuthn || LASSO_PROFILE(login)->session == NULL) && |
