server: proxy: pf_context.c: Fix nla crash
authorkubistika <kmizrachi18@gmail.com>
Tue, 13 Aug 2019 12:06:45 +0000 (15:06 +0300)
committerakallabeth <akallabeth@users.noreply.github.com>
Wed, 14 Aug 2019 17:39:34 +0000 (19:39 +0200)
commitef306fbff6c4d5b003b645651a1311dba1a5dfd4
tree2ee0038a5959b9320b1f4401d6640a6025dbb3ef
parent749c88ab0dfa2e6608601b3b6a7f188e5bac740e
server: proxy: pf_context.c: Fix nla crash

Because the proxy uses freerdp_settings_copy to do re-negotiation after
first connection to remote server, all redirection information
(RedirectionPassword, RedirectionDomain, etc.) pointers were duplicated
(to both client and server settings structs). Then, at disconnection, a
double-free occured.
server/proxy/pf_client.c
server/proxy/pf_context.c
server/proxy/pf_context.h