Skip to content

Commit 855341b

Browse files
davisd123simo5
authored andcommitted
Negate established flag if session is expired.
If the session is expired, then set established to false to force re-authentication. Reviewed-by: Simo Sorce <simo@redhat.com> Close #57
1 parent ac31a91 commit 855341b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/sessions.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ void mag_check_session(struct mag_req_cfg *cfg, struct mag_conn **conn)
157157
expiration = gsessdata->expiration;
158158
if (expiration < time(NULL)) {
159159
/* credentials fully expired, return nothing */
160+
mc->established = false;
160161
goto done;
161162
}
162163

0 commit comments

Comments
 (0)