version 1.30, 2017/05/30 14:23:52 |
version 1.31, 2017/05/31 07:00:13 |
|
|
} |
} |
|
|
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; |
|
|
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 { |
|
|
} |
} |
|
|
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); |
} |
} |