70c8acdd67
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(). |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
drdynvc_main.c | ||
drdynvc_main.h |