]> git.sesse.net Git - rdpsrv/commitdiff
Check return value of mcs_recv_connect_initial().
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 3 Feb 2005 23:59:06 +0000 (23:59 +0000)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 3 Feb 2005 23:59:06 +0000 (23:59 +0000)
rdpsrv.c

index bb5b1db4727dae82a7484d714216d1cffcff0146..c5b4169403f7ef271fa7f237e52257bae1925f28 100644 (file)
--- 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 ( ;; ) {