PROTOCOL_RDP is 0, so don't perform bitwise operations on it.

This commit is contained in:
Pawel Jakub Dawidek 2012-01-17 17:52:12 +01:00
parent 3725a032ef
commit 6f418cb20b
1 changed files with 1 additions and 1 deletions

View File

@ -480,7 +480,7 @@ boolean rdp_server_accept_nego(rdpRdp* rdp, STREAM* s)
ret = transport_accept_nla(rdp->transport);
else if (rdp->nego->selected_protocol & PROTOCOL_TLS)
ret = transport_accept_tls(rdp->transport);
else if (rdp->nego->selected_protocol & PROTOCOL_RDP)
else if (rdp->nego->selected_protocol == PROTOCOL_RDP) /* 0 */
ret = transport_accept_rdp(rdp->transport);
if (!ret)