[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.289 and 1.290

version 1.289, 2020/01/23 10:53:04 version 1.290, 2020/01/30 07:20:05
Line 1824 
Line 1824 
 sshpkt_vfatal(struct ssh *ssh, int r, const char *fmt, va_list ap)  sshpkt_vfatal(struct ssh *ssh, int r, const char *fmt, va_list ap)
 {  {
         char *tag = NULL, remote_id[512];          char *tag = NULL, remote_id[512];
           int oerrno = errno;
   
         sshpkt_fmt_connection_id(ssh, remote_id, sizeof(remote_id));          sshpkt_fmt_connection_id(ssh, remote_id, sizeof(remote_id));
   
Line 1851 
Line 1852 
         case SSH_ERR_NO_HOSTKEY_ALG_MATCH:          case SSH_ERR_NO_HOSTKEY_ALG_MATCH:
                 if (ssh && ssh->kex && ssh->kex->failed_choice) {                  if (ssh && ssh->kex && ssh->kex->failed_choice) {
                         ssh_packet_clear_keys(ssh);                          ssh_packet_clear_keys(ssh);
                           errno = oerrno;
                         logdie("Unable to negotiate with %s: %s. "                          logdie("Unable to negotiate with %s: %s. "
                             "Their offer: %s", remote_id, ssh_err(r),                              "Their offer: %s", remote_id, ssh_err(r),
                             ssh->kex->failed_choice);                              ssh->kex->failed_choice);
Line 1863 
Line 1865 
                             __func__);                              __func__);
                 }                  }
                 ssh_packet_clear_keys(ssh);                  ssh_packet_clear_keys(ssh);
                   errno = oerrno;
                 logdie("%s%sConnection %s %s: %s",                  logdie("%s%sConnection %s %s: %s",
                     tag != NULL ? tag : "", tag != NULL ? ": " : "",                      tag != NULL ? tag : "", tag != NULL ? ": " : "",
                     ssh->state->server_side ? "from" : "to",                      ssh->state->server_side ? "from" : "to",

Legend:
Removed from v.1.289  
changed lines
  Added in v.1.290