X-Git-Url: https://git.sesse.net/?p=rdpsrv;a=blobdiff_plain;f=rdpsrv.c;h=c5b4169403f7ef271fa7f237e52257bae1925f28;hp=e321ba6342c3b8806fc57bb9f6c4bcabda2c47eb;hb=f78d8ca1c22e0fcfabb9383928bc2cf6c93473cd;hpb=48580be79f1c97788f7f3a92b9791056b9773058 diff --git a/rdpsrv.c b/rdpsrv.c index e321ba6..c5b4169 100644 --- a/rdpsrv.c +++ b/rdpsrv.c @@ -61,7 +61,9 @@ int create_server_socket() int serve_client() { - mcs_recv_connect_initial(); + if (!mcs_recv_connect_initial()) + error("MCS_CONNECT_INITIAL recv failed"); + mcs_send_connect_response(); for ( ;; ) { short channel;