server/proxy: set ps->thread to NULL on disconnect
authorkubistika <kmizrachi18@gmail.com>
Tue, 11 Jun 2019 15:54:10 +0000 (18:54 +0300)
committerakallabeth <akallabeth@users.noreply.github.com>
Wed, 26 Jun 2019 12:25:07 +0000 (14:25 +0200)
commit74a66f6651915ec7247f7e534ff49b0164b2c9c9
tree15bf36eb4275665dcebc7c374335efa74bdc1462
parent8a115f20204f112c64094cae5eb10168290509ea
server/proxy: set ps->thread to NULL on disconnect

freerdp_abort_connect calls the proxy's client stop function,
that closes the thread handle. if it already closed by the server,
a segfault will occur because CloseHandle will try to access free()'ed
memory.
server/proxy/pf_server.c