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

Diff for /src/usr.bin/ssh/packet.c between version 1.97 and 1.98

version 1.97, 2002/07/04 08:12:15 version 1.98, 2002/10/23 10:32:13
Line 835 
Line 835 
         cp = buffer_ptr(&input);          cp = buffer_ptr(&input);
         len = GET_32BIT(cp);          len = GET_32BIT(cp);
         if (len < 1 + 2 + 2 || len > 256 * 1024)          if (len < 1 + 2 + 2 || len > 256 * 1024)
                 packet_disconnect("Bad packet length %d.", len);                  packet_disconnect("Bad packet length %u.", len);
         padded_len = (len + 8) & ~7;          padded_len = (len + 8) & ~7;
   
         /* Check if the packet has been entirely received. */          /* Check if the packet has been entirely received. */
Line 931 
Line 931 
                 packet_length = GET_32BIT(cp);                  packet_length = GET_32BIT(cp);
                 if (packet_length < 1 + 4 || packet_length > 256 * 1024) {                  if (packet_length < 1 + 4 || packet_length > 256 * 1024) {
                         buffer_dump(&incoming_packet);                          buffer_dump(&incoming_packet);
                         packet_disconnect("Bad packet length %d.", packet_length);                          packet_disconnect("Bad packet length %u.", packet_length);
                 }                  }
                 DBG(debug("input: packet len %d", packet_length+4));                  DBG(debug("input: packet len %u", packet_length+4));
                 buffer_consume(&input, block_size);                  buffer_consume(&input, block_size);
         }          }
         /* we have a partial packet of block_size bytes */          /* we have a partial packet of block_size bytes */

Legend:
Removed from v.1.97  
changed lines
  Added in v.1.98