summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsss <sss@dark-alexandr.net>2024-02-22 20:13:53 +0300
committersss <sss@dark-alexandr.net>2024-02-22 20:13:53 +0300
commit083d9c0a481f85b7194adfe3f99a6618b5741f13 (patch)
tree0e8f98ba66a85e053355444e0b7b53db605cb1dd
parentff84ef877aa0004063cb082b5906cf61cc9a20bd (diff)
fixed backend initialization without tokenHEADmaster
-rw-r--r--src/core/ws_protocol.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/core/ws_protocol.c b/src/core/ws_protocol.c
index 3bb8eba..d039948 100644
--- a/src/core/ws_protocol.c
+++ b/src/core/ws_protocol.c
@@ -718,6 +718,11 @@ ws_handle_message(
/* DEBUG END */
if (!session->token_base64)
{
+ /* token is not used, we need to
+ * generate random sid */
+ generate_random_session_sid(session);
+ backend_get(session->backend_module_name, session);
+ backend_fill_settings(session);
if (!info || !info->backend)
{
const char *msg
@@ -736,9 +741,7 @@ ws_handle_message(
{
return false;
}
- /* token is not used, we need to
- * generate random sid */
- generate_random_session_sid(session);
+
session->session_state
= ws_session_started;