[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.115 and 1.115.2.1

version 1.115, 2004/06/21 17:36:31 version 1.115.2.1, 2005/03/10 16:28:27
Line 976 
Line 976 
                     buffer_len(&compression_buffer));                      buffer_len(&compression_buffer));
         }          }
         type = buffer_get_char(&incoming_packet);          type = buffer_get_char(&incoming_packet);
           if (type < SSH_MSG_MIN || type > SSH_MSG_MAX)
                   packet_disconnect("Invalid ssh1 packet type: %d", type);
         return type;          return type;
 }  }
   
Line 1088 
Line 1090 
          * return length of payload (without type field)           * return length of payload (without type field)
          */           */
         type = buffer_get_char(&incoming_packet);          type = buffer_get_char(&incoming_packet);
           if (type < SSH2_MSG_MIN || type >= SSH2_MSG_LOCAL_MIN)
                   packet_disconnect("Invalid ssh2 packet type: %d", type);
         if (type == SSH2_MSG_NEWKEYS)          if (type == SSH2_MSG_NEWKEYS)
                 set_newkeys(MODE_IN);                  set_newkeys(MODE_IN);
 #ifdef PACKET_DEBUG  #ifdef PACKET_DEBUG

Legend:
Removed from v.1.115  
changed lines
  Added in v.1.115.2.1