Fix typo: use & instead of | to check for flags. This fixes detection of requested protocols.

This commit is contained in:
Pawel Jakub Dawidek 2012-01-23 22:29:33 +01:00
parent d5728b5ead
commit 207cb9b818

View File

@ -441,7 +441,7 @@ boolean rdp_server_accept_nego(rdpRdp* rdp, STREAM* s)
}
printf("Requested protocols:");
if ((rdp->nego->requested_protocols | PROTOCOL_TLS))
if ((rdp->nego->requested_protocols & PROTOCOL_TLS))
{
printf(" TLS");
if (rdp->settings->tls_security)
@ -452,7 +452,7 @@ boolean rdp_server_accept_nego(rdpRdp* rdp, STREAM* s)
else
printf("(n)");
}
if ((rdp->nego->requested_protocols | PROTOCOL_NLA))
if ((rdp->nego->requested_protocols & PROTOCOL_NLA))
{
printf(" NLA");
if (rdp->settings->nla_security)