unsigned int id_len;
uint8_t const *id;
- /*
- * Request was cancelled, just get OpenSSL to
- * free the session data, and don't do any work.
- */
- if (unlang_request_is_cancelled(request)) return 0;
-
/*
* This functions should only be called once during the lifetime
* of the tls_session, as the fields aren't re-populated on
request = fr_tls_session_request(tls_session->ssl);
tls_cache = tls_session->cache;
+ /*
+ * Request was cancelled, just get OpenSSL to
+ * free the session data, and don't do any work.
+ */
+ if (unlang_request_is_cancelled(request)) return 0;
+
id = SSL_SESSION_get_id(sess, &id_len);
RDEBUG3("Requested session store - ID %pV", fr_box_octets(id, id_len));
/*