[BACK]Return to msg.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/msg.c between version 1.2.2.1 and 1.2.2.2

version 1.2.2.1, 2002/06/22 07:23:17 version 1.2.2.2, 2002/06/26 18:22:35
Line 36 
Line 36 
         u_char buf[5];          u_char buf[5];
         u_int mlen = buffer_len(m);          u_int mlen = buffer_len(m);
   
         debug3("msg_send: type %d", type);          debug3("msg_send: type %u", (unsigned int)type & 0xff);
   
         PUT_32BIT(buf, mlen + 1);          PUT_32BIT(buf, mlen + 1);
         buf[4] = type;          /* 1st byte of payload is mesg-type */          buf[4] = type;          /* 1st byte of payload is mesg-type */
Line 59 
Line 59 
         if (res != sizeof(buf)) {          if (res != sizeof(buf)) {
                 if (res == 0)                  if (res == 0)
                         return -1;                          return -1;
                 fatal("msg_recv: read: header %d", res);                  fatal("msg_recv: read: header %ld", (long)res);
         }          }
         msg_len = GET_32BIT(buf);          msg_len = GET_32BIT(buf);
         if (msg_len > 256 * 1024)          if (msg_len > 256 * 1024)

Legend:
Removed from v.1.2.2.1  
changed lines
  Added in v.1.2.2.2