summaryrefslogtreecommitdiff
path: root/svr-chansession.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2008-09-29 13:53:31 +0000
committerMatt Johnston <matt@ucc.asn.au>2008-09-29 13:53:31 +0000
commitb9741f14bb7d8020fe38d58d8c3c8babcd48bcc2 (patch)
tree83dc9f384e04071da685d43688e54dc1bb5d874e /svr-chansession.c
parent728e46fa99dd96532939764f29b324fb8b87f223 (diff)
downloaddropbear-b9741f14bb7d8020fe38d58d8c3c8babcd48bcc2.tar.gz
- Add Counter Mode support
Diffstat (limited to 'svr-chansession.c')
-rw-r--r--svr-chansession.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/svr-chansession.c b/svr-chansession.c
index 9b2a412..e7a2106 100644
--- a/svr-chansession.c
+++ b/svr-chansession.c
@@ -663,11 +663,11 @@ static int noptycommand(struct Channel *channel, struct ChanSess *chansess) {
addchildpid(chansess, chansess->pid);
if (svr_ses.lastexit.exitpid != -1) {
+ unsigned int i;
TRACE(("parent side: lastexitpid is %d", svr_ses.lastexit.exitpid))
/* The child probably exited and the signal handler triggered
* possibly before we got around to adding the childpid. So we fill
* out its data manually */
- int i;
for (i = 0; i < svr_ses.childpidsize; i++) {
if (svr_ses.childpids[i].pid == svr_ses.lastexit.exitpid) {
TRACE(("found match for lastexitpid"))