]> git.ipfire.org Git - thirdparty/freeswitch.git/commit
Merge commit from fork
authorDmitry Verenitsin <morbit85@gmail.com>
Tue, 26 May 2026 19:24:48 +0000 (00:24 +0500)
committerGitHub <noreply@github.com>
Tue, 26 May 2026 19:24:48 +0000 (22:24 +0300)
commit693f7dc6aad2f2c17499571806da99ec63ce0a79
treea71c0d455efd5ce90e84b532e30b5183fc8f26cf
parent67b62fb969a65662b8ae178fb4a41dae67ce0eb6
Merge commit from fork

`process_jrpc()` called `set_session_id()` before `check_auth()`, so an
unauthenticated client could insert its jsock into `jsock_hash` under a
foreign `sessid` and have `attach_jsock()` evict the prior owner
(`verto.punt` + `detach_calls()` + `drop=1`) with no identity check.

Move the bind past the auth gate; `JPFLAG_INIT` now means "jsock is
bound", not "first frame seen". Additionally, `attach_jsock()` refuses
the bind when prior and new jsock are authed under different `uid`s,
replying `CODE_AUTH_FAILED` "Session in use". Same-uid reconnect and
no-auth profile binds are unchanged.
src/mod/endpoints/mod_verto/mod_verto.c