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

Diff for /src/usr.bin/ssh/sftp-server.c between version 1.47.4.2 and 1.48

version 1.47.4.2, 2006/02/03 02:53:45 version 1.48, 2005/06/17 02:44:33
Line 21 
Line 21 
 #include "getput.h"  #include "getput.h"
 #include "log.h"  #include "log.h"
 #include "xmalloc.h"  #include "xmalloc.h"
 #include "misc.h"  
   
 #include "sftp.h"  #include "sftp.h"
 #include "sftp-common.h"  #include "sftp-common.h"
Line 926 
Line 925 
                 return;         /* Incomplete message. */                  return;         /* Incomplete message. */
         cp = buffer_ptr(&iqueue);          cp = buffer_ptr(&iqueue);
         msg_len = GET_32BIT(cp);          msg_len = GET_32BIT(cp);
         if (msg_len > SFTP_MAX_MSG_LENGTH) {          if (msg_len > 256 * 1024) {
                 error("bad message ");                  error("bad message ");
                 exit(11);                  exit(11);
         }          }
Line 1016 
Line 1015 
         fd_set *rset, *wset;          fd_set *rset, *wset;
         int in, out, max;          int in, out, max;
         ssize_t len, olen, set_size;          ssize_t len, olen, set_size;
   
         /* Ensure that fds 0, 1 and 2 are open or directed to /dev/null */  
         sanitise_stdfd();  
   
         /* XXX should use getopt */          /* XXX should use getopt */
   

Legend:
Removed from v.1.47.4.2  
changed lines
  Added in v.1.48