]> prime8.dev >> repos - ttyd.git/commit
Fix potential segmentation fault (SIGSEGV) error
authorShuanglei Tao <tsl0922@gmail.com>
Fri, 10 Mar 2017 18:24:38 +0000 (02:24 +0800)
committerShuanglei Tao <tsl0922@gmail.com>
Fri, 10 Mar 2017 18:34:37 +0000 (02:34 +0800)
commit08ac6dc43cfa196180790cefe2d0b9af125063ad
tree7edaa5255c25d133254e84805ff721d6d00f0b2d
parent4d31e534c0ec20582d91210990969c19b68ab3b0
Fix potential segmentation fault (SIGSEGV) error

The server->clients variable may still holds reference to user data which is already freed after websocket connection closed.
src/protocol.c