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

Diff for /src/usr.bin/ssh/dispatch.c between version 1.30 and 1.31

version 1.30, 2017/05/30 14:23:52 version 1.31, 2017/05/31 07:00:13
Line 83 
Line 83 
 }  }
   
 int  int
 ssh_dispatch_run(struct ssh *ssh, int mode, volatile sig_atomic_t *done,  ssh_dispatch_run(struct ssh *ssh, int mode, volatile sig_atomic_t *done)
     void *ctxt)  
 {  {
         int r;          int r;
         u_char type;          u_char type;
Line 109 
Line 108 
                                 ssh->dispatch_skip_packets--;                                  ssh->dispatch_skip_packets--;
                                 continue;                                  continue;
                         }                          }
                         /* XXX 'ssh' will replace 'ctxt' later */                          r = (*ssh->dispatch[type])(type, seqnr, ssh);
                         r = (*ssh->dispatch[type])(type, seqnr, ctxt);  
                         if (r != 0)                          if (r != 0)
                                 return r;                                  return r;
                 } else {                  } else {
Line 126 
Line 124 
 }  }
   
 void  void
 ssh_dispatch_run_fatal(struct ssh *ssh, int mode, volatile sig_atomic_t *done,  ssh_dispatch_run_fatal(struct ssh *ssh, int mode, volatile sig_atomic_t *done)
     void *ctxt)  
 {  {
         int r;          int r;
   
         if ((r = ssh_dispatch_run(ssh, mode, done, ctxt)) != 0)          if ((r = ssh_dispatch_run(ssh, mode, done)) != 0)
                 sshpkt_fatal(ssh, __func__, r);                  sshpkt_fatal(ssh, __func__, r);
 }  }

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.31