Fix typo: use & instead of | to check for flags. This fixes detection of requested...
authorPawel Jakub Dawidek <pawel@dawidek.net>
Mon, 23 Jan 2012 21:29:33 +0000 (22:29 +0100)
committerPawel Jakub Dawidek <pawel@dawidek.net>
Wed, 25 Jan 2012 16:13:53 +0000 (17:13 +0100)
libfreerdp-core/connection.c

index 5403db3..229baf5 100644 (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)