diff options
author | sss <sss@dark-alexandr.net> | 2024-02-22 20:13:53 +0300 |
---|---|---|
committer | sss <sss@dark-alexandr.net> | 2024-02-22 20:13:53 +0300 |
commit | 083d9c0a481f85b7194adfe3f99a6618b5741f13 (patch) | |
tree | 0e8f98ba66a85e053355444e0b7b53db605cb1dd | |
parent | ff84ef877aa0004063cb082b5906cf61cc9a20bd (diff) |
-rw-r--r-- | src/core/ws_protocol.c | 9 |
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; |