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

Diff for /src/usr.bin/ssh/kex.c between version 1.177 and 1.178

version 1.177, 2023/03/08 04:43:12 version 1.178, 2023/03/12 10:40:39
Line 526 
Line 526 
         ssh_dispatch_set(ssh, SSH2_MSG_EXT_INFO, &kex_protocol_error);          ssh_dispatch_set(ssh, SSH2_MSG_EXT_INFO, &kex_protocol_error);
         if ((r = sshpkt_get_u32(ssh, &ninfo)) != 0)          if ((r = sshpkt_get_u32(ssh, &ninfo)) != 0)
                 return r;                  return r;
           if (ninfo >= 1024) {
                   error("SSH2_MSG_EXT_INFO with too many entries, expected "
                       "<=1024, received %u", ninfo);
                   return SSH_ERR_INVALID_FORMAT;
           }
         for (i = 0; i < ninfo; i++) {          for (i = 0; i < ninfo; i++) {
                 if ((r = sshpkt_get_cstring(ssh, &name, NULL)) != 0)                  if ((r = sshpkt_get_cstring(ssh, &name, NULL)) != 0)
                         return r;                          return r;

Legend:
Removed from v.1.177  
changed lines
  Added in v.1.178