core: fix problem with data for unknown channel
authorBernhard Miklautz <bernhard.miklautz@thincast.com>
Tue, 16 Dec 2014 15:27:55 +0000 (16:27 +0100)
committerBernhard Miklautz <bernhard.miklautz@thincast.com>
Tue, 16 Dec 2014 15:27:55 +0000 (16:27 +0100)
commit78d68598edc8d5ab228ccce8f81359733c09cb52
treedfd9ae612d7542ea026994c3308f7810ddbe5296
parent65214b49b94e86ac0b692c99e5e623699e956891
core: fix problem with data for unknown channel

Some buggy server(s) send data for channels that weren't announced or
negotiated. When processing this data FreeRDP had a problem and always
used the last channel in the channels list even if it wasn't responsible
for the data. Depending on how the channel handled the data this could
lead to different kind of problems and also segmentation faults.

Now data for unknown channels is ignored and not processed further.
libfreerdp/core/client.c