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

Diff for /src/usr.bin/ssh/channels.c between version 1.151 and 1.152

version 1.151, 2001/12/27 20:39:58 version 1.152, 2001/12/28 12:14:27
Line 1748 
Line 1748 
                 }                  }
                 c->local_window -= data_len;                  c->local_window -= data_len;
         }          }
         packet_done();          packet_check_eom();
         buffer_append(&c->output, data, data_len);          buffer_append(&c->output, data, data_len);
         xfree(data);          xfree(data);
 }  }
Line 1780 
Line 1780 
                 return;                  return;
         }          }
         data = packet_get_string(&data_len);          data = packet_get_string(&data_len);
         packet_done();          packet_check_eom();
         if (data_len > c->local_window) {          if (data_len > c->local_window) {
                 log("channel %d: rcvd too much extended_data %d, win %d",                  log("channel %d: rcvd too much extended_data %d, win %d",
                     c->self, data_len, c->local_window);                      c->self, data_len, c->local_window);
Line 1800 
Line 1800 
         Channel *c;          Channel *c;
   
         id = packet_get_int();          id = packet_get_int();
         packet_done();          packet_check_eom();
         c = channel_lookup(id);          c = channel_lookup(id);
         if (c == NULL)          if (c == NULL)
                 packet_disconnect("Received ieof for nonexistent channel %d.", id);                  packet_disconnect("Received ieof for nonexistent channel %d.", id);
Line 1821 
Line 1821 
         Channel *c;          Channel *c;
   
         id = packet_get_int();          id = packet_get_int();
         packet_done();          packet_check_eom();
         c = channel_lookup(id);          c = channel_lookup(id);
         if (c == NULL)          if (c == NULL)
                 packet_disconnect("Received close for nonexistent channel %d.", id);                  packet_disconnect("Received close for nonexistent channel %d.", id);
Line 1858 
Line 1858 
         int id = packet_get_int();          int id = packet_get_int();
         Channel *c = channel_lookup(id);          Channel *c = channel_lookup(id);
   
         packet_done();          packet_check_eom();
         if (c == NULL)          if (c == NULL)
                 packet_disconnect("Received oclose for nonexistent channel %d.", id);                  packet_disconnect("Received oclose for nonexistent channel %d.", id);
         chan_rcvd_oclose(c);          chan_rcvd_oclose(c);
Line 1870 
Line 1870 
         int id = packet_get_int();          int id = packet_get_int();
         Channel *c = channel_lookup(id);          Channel *c = channel_lookup(id);
   
         packet_done();          packet_check_eom();
         if (c == NULL)          if (c == NULL)
                 packet_disconnect("Received close confirmation for "                  packet_disconnect("Received close confirmation for "
                     "out-of-range channel %d.", id);                      "out-of-range channel %d.", id);
Line 1908 
Line 1908 
                 debug("channel %d: open confirm rwindow %d rmax %d", c->self,                  debug("channel %d: open confirm rwindow %d rmax %d", c->self,
                     c->remote_window, c->remote_maxpacket);                      c->remote_window, c->remote_maxpacket);
         }          }
         packet_done();          packet_check_eom();
 }  }
   
 static char *  static char *
Line 1953 
Line 1953 
                 if (lang != NULL)                  if (lang != NULL)
                         xfree(lang);                          xfree(lang);
         }          }
         packet_done();          packet_check_eom();
         /* Free the channel.  This will also close the socket. */          /* Free the channel.  This will also close the socket. */
         channel_free(c);          channel_free(c);
 }  }
Line 2002 
Line 2002 
                 return;                  return;
         }          }
         adjust = packet_get_int();          adjust = packet_get_int();
         packet_done();          packet_check_eom();
         debug2("channel %d: rcvd adjust %d", id, adjust);          debug2("channel %d: rcvd adjust %d", id, adjust);
         c->remote_window += adjust;          c->remote_window += adjust;
 }  }
Line 2024 
Line 2024 
         } else {          } else {
                 originator_string = xstrdup("unknown (remote did not supply name)");                  originator_string = xstrdup("unknown (remote did not supply name)");
         }          }
         packet_done();          packet_check_eom();
         sock = channel_connect_to(host, host_port);          sock = channel_connect_to(host, host_port);
         if (sock != -1) {          if (sock != -1) {
                 c = channel_new("connected socket",                  c = channel_new("connected socket",
Line 2610 
Line 2610 
         } else {          } else {
                 remote_host = xstrdup("unknown (remote did not supply name)");                  remote_host = xstrdup("unknown (remote did not supply name)");
         }          }
         packet_done();          packet_check_eom();
   
         /* Obtain a connection to the real X display. */          /* Obtain a connection to the real X display. */
         sock = x11_connect_display();          sock = x11_connect_display();
Line 2861 
Line 2861 
   
         /* Read the remote channel number from the message. */          /* Read the remote channel number from the message. */
         remote_id = packet_get_int();          remote_id = packet_get_int();
         packet_done();          packet_check_eom();
   
         /*          /*
          * Get a connection to the local authentication agent (this may again           * Get a connection to the local authentication agent (this may again

Legend:
Removed from v.1.151  
changed lines
  Added in v.1.152