[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.305 and 1.306

version 1.305, 2022/01/17 22:56:04 version 1.306, 2022/01/21 06:58:06
Line 1739 
Line 1739 
 }  }
   
 /*  /*
  * Buffers the given amount of input characters.  This is intended to be used   * Buffers the supplied input data. This is intended to be used together
  * together with packet_read_poll.   * with packet_read_poll().
  */   */
   
 int  int
 ssh_packet_process_incoming(struct ssh *ssh, const char *buf, u_int len)  ssh_packet_process_incoming(struct ssh *ssh, const char *buf, u_int len)
 {  {
Line 1758 
Line 1757 
                 state->packet_discard -= len;                  state->packet_discard -= len;
                 return 0;                  return 0;
         }          }
         if ((r = sshbuf_put(ssh->state->input, buf, len)) != 0)          if ((r = sshbuf_put(state->input, buf, len)) != 0)
                 return r;                  return r;
   
         return 0;          return 0;

Legend:
Removed from v.1.305  
changed lines
  Added in v.1.306