Fix disconnection when negociation has failed
authorDavid FORT <contact@hardening-consulting.com>
Fri, 13 Feb 2015 17:25:50 +0000 (18:25 +0100)
committerDavid FORT <contact@hardening-consulting.com>
Fri, 13 Feb 2015 17:25:50 +0000 (18:25 +0100)
commitbb9ba34f1dc2b329abf8d6da5bd1d573db9c42fb
tree25184b0d4968dcfde7d816c8f1609e18b0d35b8c
parent486433f193040a051d4b3023fbc74bc4d0c41ac1
Fix disconnection when negociation has failed

This patch fixes a bug with mstsc connecting to a RDP security only FreeRDP server.
It seems like the mstsc shipped with Windows Seven considers packets after the nego_failure
packet as an error. So after trying to do TLS, depending on the timing, mstsc can print an
error message instead of retrying to connect with RDP security. With this patch, we
don't send the MCS disconnect message when the negociation has failed.
libfreerdp/core/peer.c