[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.345 and 1.346

version 1.345, 2015/06/30 05:23:25 version 1.346, 2015/06/30 05:25:07
Line 2614 
Line 2614 
 {  {
         Channel *c;          Channel *c;
         int id;          int id;
         u_int adjust;          u_int adjust, tmp;
   
         if (!compat20)          if (!compat20)
                 return 0;                  return 0;
Line 2630 
Line 2630 
         adjust = packet_get_int();          adjust = packet_get_int();
         packet_check_eom();          packet_check_eom();
         debug2("channel %d: rcvd adjust %u", id, adjust);          debug2("channel %d: rcvd adjust %u", id, adjust);
         c->remote_window += adjust;          if ((tmp = c->remote_window + adjust) < c->remote_window)
                   fatal("channel %d: adjust %u overflows remote window %u",
                       id, adjust, c->remote_window);
           c->remote_window = tmp;
         return 0;          return 0;
 }  }
   

Legend:
Removed from v.1.345  
changed lines
  Added in v.1.346