]> git.sesse.net Git - rdpsrv/blobdiff - rdpsrv.c
Decrypt the client random (although not without Valgrind hits from OpenSSL...)
[rdpsrv] / rdpsrv.c
index 9e09d2161dd53871af7b566e80ccc5a6a33070c3..91989872cf530955bd5cd274a21f858e9d09818a 100644 (file)
--- a/rdpsrv.c
+++ b/rdpsrv.c
@@ -10,7 +10,7 @@
 #include "rdesktop.h"
 #include "scancodes.h"
 
-const int tcp_port_rdp = 3390;
+const int tcp_port_rdp = 3389;
 int create_server_socket();
 int serve_client();
 
@@ -389,7 +389,7 @@ int serve_client()
                                        error("short read on vnc_sock\n");
                                if (read(vnc_sock, buf, 4) != 4)
                                        error("short read on vnc_sock\n");
-                               if (read(vnc_sock, (buf[0] << 24) | (buf[1] << 16) | (buf[2] << 8) | buf[3], 4) != 4)
+                               if (read(vnc_sock, buf, (buf[0] << 24) | (buf[1] << 16) | (buf[2] << 8) | buf[3]) != 4)
                                        error("short read on vnc_sock\n");
                                
                        default: