mc = *conn;
if (!mc) {
*conn = mc = mag_new_conn_ctx(req->pool);
+ mc->is_preserved = true;
}
rc = mag_session_get(req, sess, MAG_BEARER_KEY, &sessval);
expiration = gsessdata->expiration;
if (expiration < time(NULL)) {
/* credentials fully expired, return nothing */
+ mc->established = false;
goto done;
}