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

Diff for /src/usr.bin/ssh/nchan.c between version 1.35 and 1.36

version 1.35, 2002/01/10 12:38:26 version 1.36, 2002/01/10 12:47:59
Line 155 
Line 155 
 chan_rcvd_ieof1(Channel *c)  chan_rcvd_ieof1(Channel *c)
 {  {
         debug("channel %d: rcvd ieof", c->self);          debug("channel %d: rcvd ieof", c->self);
         if (c->type != SSH_CHANNEL_OPEN) {  
                 debug("channel %d: non-open", c->self);  
                 if (c->istate == CHAN_INPUT_OPEN) {  
                         debug("channel %d: non-open: input open -> wait_oclose",  
                             c->self);  
                         chan_shutdown_read(c);  
                         chan_send_ieof1(c);  
                         c->istate = CHAN_INPUT_WAIT_OCLOSE;  
                 } else {  
                         error("channel %d: non-open: istate %d != open",  
                             c->self, c->istate);  
                 }  
                 if (c->ostate == CHAN_OUTPUT_OPEN) {  
                         debug("channel %d: non-open: output open -> closed",  
                             c->self);  
                         chan_send_oclose1(c);  
                         c->ostate = CHAN_OUTPUT_CLOSED;  
                 } else {  
                         error("channel %d: non-open: ostate %d != open",  
                             c->self, c->ostate);  
                 }  
                 return;  
         }  
         switch (c->ostate) {          switch (c->ostate) {
         case CHAN_OUTPUT_OPEN:          case CHAN_OUTPUT_OPEN:
                 debug("channel %d: output open -> drain", c->self);                  debug("channel %d: output open -> drain", c->self);

Legend:
Removed from v.1.35  
changed lines
  Added in v.1.36