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

Diff for /src/usr.bin/ssh/session.c between version 1.122 and 1.123

version 1.122, 2002/01/29 22:46:41 version 1.123, 2002/02/03 17:53:25
Line 1375 
Line 1375 
         }          }
 }  }
   
 void  int
 session_input_channel_req(int id, void *arg)  session_input_channel_req(Channel *c, const char *rtype)
 {  {
         u_int len;  
         int reply;  
         int success = 0;          int success = 0;
         char *rtype;  
         Session *s;          Session *s;
         Channel *c;  
   
         rtype = packet_get_string(&len);          if ((s = session_by_channel(c->self)) == NULL) {
         reply = packet_get_char();                  log("session_input_channel_req: no session %d req %.100s",
                       c->self, rtype);
                   return 0;
           }
           debug("session_input_channel_req: session %d req %s", s->self, rtype);
   
         s = session_by_channel(id);  
         if (s == NULL)  
                 fatal("session_input_channel_req: channel %d: no session", id);  
         c = channel_lookup(id);  
         if (c == NULL)  
                 fatal("session_input_channel_req: channel %d: bad channel", id);  
   
         debug("session_input_channel_req: session %d channel %d request %s reply %d",  
             s->self, id, rtype, reply);  
   
         /*          /*
          * a session is in LARVAL state until a shell, a command           * a session is in LARVAL state until a shell, a command
          * or a subsystem is executed           * or a subsystem is executed
Line 1420 
Line 1410 
         if (strcmp(rtype, "window-change") == 0) {          if (strcmp(rtype, "window-change") == 0) {
                 success = session_window_change_req(s);                  success = session_window_change_req(s);
         }          }
           return success;
         if (reply) {  
                 packet_start(success ?  
                     SSH2_MSG_CHANNEL_SUCCESS : SSH2_MSG_CHANNEL_FAILURE);  
                 packet_put_int(c->remote_id);  
                 packet_send();  
         }  
         xfree(rtype);  
 }  }
   
 void  void

Legend:
Removed from v.1.122  
changed lines
  Added in v.1.123