[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.143 and 1.144

version 1.143, 2006/08/05 08:34:04 version 1.144, 2006/09/16 19:53:37
Line 991 
Line 991 
          * (C)1998 CORE-SDI, Buenos Aires Argentina           * (C)1998 CORE-SDI, Buenos Aires Argentina
          * Ariel Futoransky(futo@core-sdi.com)           * Ariel Futoransky(futo@core-sdi.com)
          */           */
         if (!receive_context.plaintext &&          if (!receive_context.plaintext) {
             detect_attack(buffer_ptr(&input), padded_len) == DEATTACK_DETECTED)                  switch (detect_attack(buffer_ptr(&input), padded_len)) {
                 packet_disconnect("crc32 compensation attack: network attack detected");                  case DEATTACK_DETECTED:
                           packet_disconnect("crc32 compensation attack: "
                               "network attack detected");
                   case DEATTACK_DOS_DETECTED:
                           packet_disconnect("deattack denial of "
                               "service detected");
                   }
           }
   
         /* Decrypt data to incoming_packet. */          /* Decrypt data to incoming_packet. */
         buffer_clear(&incoming_packet);          buffer_clear(&incoming_packet);

Legend:
Removed from v.1.143  
changed lines
  Added in v.1.144