FreeRDP/channels/drdynvc/client
Norbert Federa 70c8acdd67 drdynvc: fix segfaults and a compiler warning
If we send a negative creation status while processing the DVC create
response pdu in drdynvc_process_create_request() we must also close
the created channel. Otherwise we will get duplicated channel IDs
in the channel manager's array list because the server will
eventually reuse the channel ids which we have reported as failed in
previous creation responses.
In order to protect the client from duplicated IDs sent by buggy or
malicious servers I've added an appropriate check in
dvcman_channel_new() which will now return NULL in this case.
Also added a missing NULL check for the result of dvcman_channel_new()
in dvcman_create_channel().
2015-01-26 19:26:38 +01:00
..
CMakeLists.txt channels: fix drdynvc, patch memory leaks 2014-12-27 15:20:29 -05:00
drdynvc_main.c drdynvc: fix segfaults and a compiler warning 2015-01-26 19:26:38 +01:00
drdynvc_main.h channels: fix drdynvc, patch memory leaks 2014-12-27 15:20:29 -05:00