]> git.sesse.net Git - rdpsrv/commitdiff
Fix CC sending.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 3 Feb 2005 23:12:56 +0000 (23:12 +0000)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 3 Feb 2005 23:12:56 +0000 (23:12 +0000)
iso.c

diff --git a/iso.c b/iso.c
index 905e54a2fbf8b28cfe8953f38ae70cc5c848b11d..0c2f945f94aa2376be7481db5500b4d25df0d4dd 100644 (file)
--- a/iso.c
+++ b/iso.c
@@ -185,7 +185,7 @@ iso_recv(void)
 BOOL
 iso_recv_connect(int server_sock)
 {
-       STREAM s;
+       STREAM s, t;
        uint8 code;
 
        tcp_recv_connect(server_sock);
@@ -205,15 +205,15 @@ iso_recv_connect(int server_sock)
        iso_init(0);
        
        /* send an CC PDU back */
-       out_uint8(s, 3);        /* version */
-       out_uint8(s, 0);        /* reserved */
-       out_uint16_be(s, 0);
+       out_uint8(t, 3);        /* version */
+       out_uint8(t, 0);        /* reserved */
+       out_uint16_be(t, 0);
 
-       out_uint8(s, 2);        /* hdrlen */
-       out_uint8(s, ISO_PDU_CC);       /* code */
-       out_uint8(s, 0x80);     /* eot */
+       out_uint8(t, 2);        /* hdrlen */
+       out_uint8(t, ISO_PDU_CC);       /* code */
+       out_uint8(t, 0x80);     /* eot */
 
-       tcp_send(s);
+       tcp_send(t);
        
        return 1;
 }