[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.56 and 1.57

version 1.56, 2006/03/25 13:17:02 version 1.57, 2006/03/30 09:58:16
Line 23 
Line 23 
   
 #include "buffer.h"  #include "buffer.h"
 #include "bufaux.h"  #include "bufaux.h"
 #include "getput.h"  
 #include "log.h"  #include "log.h"
 #include "xmalloc.h"  #include "xmalloc.h"
 #include "misc.h"  #include "misc.h"
Line 170 
Line 169 
         if (stringp == NULL || hlenp == NULL)          if (stringp == NULL || hlenp == NULL)
                 return -1;                  return -1;
         *stringp = xmalloc(sizeof(int32_t));          *stringp = xmalloc(sizeof(int32_t));
         PUT_32BIT(*stringp, handle);          put_u32(*stringp, handle);
         *hlenp = sizeof(int32_t);          *hlenp = sizeof(int32_t);
         return 0;          return 0;
 }  }
Line 182 
Line 181 
   
         if (hlen != sizeof(int32_t))          if (hlen != sizeof(int32_t))
                 return -1;                  return -1;
         val = GET_32BIT(handle);          val = get_u32(handle);
         if (handle_is_ok(val, HANDLE_FILE) ||          if (handle_is_ok(val, HANDLE_FILE) ||
             handle_is_ok(val, HANDLE_DIR))              handle_is_ok(val, HANDLE_DIR))
                 return val;                  return val;
Line 930 
Line 929 
         if (buf_len < 5)          if (buf_len < 5)
                 return;         /* Incomplete message. */                  return;         /* Incomplete message. */
         cp = buffer_ptr(&iqueue);          cp = buffer_ptr(&iqueue);
         msg_len = GET_32BIT(cp);          msg_len = get_u32(cp);
         if (msg_len > SFTP_MAX_MSG_LENGTH) {          if (msg_len > SFTP_MAX_MSG_LENGTH) {
                 error("bad message ");                  error("bad message ");
                 exit(11);                  exit(11);

Legend:
Removed from v.1.56  
changed lines
  Added in v.1.57