From: Steinar H. Gunderson Date: Thu, 3 Feb 2005 23:59:06 +0000 (+0000) Subject: Check return value of mcs_recv_connect_initial(). X-Git-Url: https://git.sesse.net/?p=rdpsrv;a=commitdiff_plain;h=f78d8ca1c22e0fcfabb9383928bc2cf6c93473cd Check return value of mcs_recv_connect_initial(). --- diff --git a/rdpsrv.c b/rdpsrv.c index bb5b1db..c5b4169 100644 --- a/rdpsrv.c +++ b/rdpsrv.c @@ -61,7 +61,8 @@ 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 ( ;; ) {