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

Diff for /src/usr.bin/ssh/clientloop.c between version 1.127 and 1.128

version 1.127, 2004/06/17 15:10:13 version 1.128, 2004/06/18 11:11:54
Line 1626 
Line 1626 
         debug("client_input_channel_req: channel %d rtype %s reply %d",          debug("client_input_channel_req: channel %d rtype %s reply %d",
             id, rtype, reply);              id, rtype, reply);
   
         c = channel_lookup(id);          if (id == -1) {
         if (c == NULL) {                  error("client_input_channel_req: request for channel -1");
           } else if ((c = channel_lookup(id)) == NULL) {
                 error("client_input_channel_req: channel %d: unknown channel", id);                  error("client_input_channel_req: channel %d: unknown channel", id);
         } else if (strcmp(rtype, "exit-status") == 0) {          } else if (strcmp(rtype, "exit-status") == 0) {
                 exitval = packet_get_int();                  exitval = packet_get_int();
Line 1646 
Line 1647 
         if (reply) {          if (reply) {
                 packet_start(success ?                  packet_start(success ?
                     SSH2_MSG_CHANNEL_SUCCESS : SSH2_MSG_CHANNEL_FAILURE);                      SSH2_MSG_CHANNEL_SUCCESS : SSH2_MSG_CHANNEL_FAILURE);
                 packet_put_int(c->remote_id);                  packet_put_int(id);
                 packet_send();                  packet_send();
         }          }
         xfree(rtype);          xfree(rtype);

Legend:
Removed from v.1.127  
changed lines
  Added in v.1.128