[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.18 and 1.19

version 1.18, 2020/01/22 04:49:16 version 1.19, 2020/06/24 15:08:53
Line 75 
Line 75 
                 return (-1);                  return (-1);
         }          }
         msg_len = get_u32(buf);          msg_len = get_u32(buf);
         if (msg_len > 256 * 1024) {          if (msg_len > sshbuf_max_size(m)) {
                 error("%s: read: bad msg_len %u", __func__, msg_len);                  error("%s: read: bad msg_len %u", __func__, msg_len);
                 return (-1);                  return (-1);
         }          }

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19