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

Diff for /src/usr.bin/ssh/sftp-client.c between version 1.51 and 1.51.2.2

version 1.51, 2004/07/11 17:48:47 version 1.51.2.2, 2005/06/05 02:22:39
Line 172 
Line 172 
                 int status = buffer_get_int(&msg);                  int status = buffer_get_int(&msg);
   
                 error("Couldn't get handle: %s", fx2txt(status));                  error("Couldn't get handle: %s", fx2txt(status));
                   buffer_free(&msg);
                 return(NULL);                  return(NULL);
         } else if (type != SSH2_FXP_HANDLE)          } else if (type != SSH2_FXP_HANDLE)
                 fatal("Expected SSH2_FXP_HANDLE(%u) packet, got %u",                  fatal("Expected SSH2_FXP_HANDLE(%u) packet, got %u",
Line 206 
Line 207 
                         debug("Couldn't stat remote file: %s", fx2txt(status));                          debug("Couldn't stat remote file: %s", fx2txt(status));
                 else                  else
                         error("Couldn't stat remote file: %s", fx2txt(status));                          error("Couldn't stat remote file: %s", fx2txt(status));
                   buffer_free(&msg);
                 return(NULL);                  return(NULL);
         } else if (type != SSH2_FXP_ATTRS) {          } else if (type != SSH2_FXP_ATTRS) {
                 fatal("Expected SSH2_FXP_ATTRS(%u) packet, got %u",                  fatal("Expected SSH2_FXP_ATTRS(%u) packet, got %u",
Line 854 
Line 856 
                 debug3("Received reply T:%u I:%u R:%d", type, id, max_req);                  debug3("Received reply T:%u I:%u R:%d", type, id, max_req);
   
                 /* Find the request in our queue */                  /* Find the request in our queue */
                 for(req = TAILQ_FIRST(&requests);                  for (req = TAILQ_FIRST(&requests);
                     req != NULL && req->id != id;                      req != NULL && req->id != id;
                     req = TAILQ_NEXT(req, tq))                      req = TAILQ_NEXT(req, tq))
                         ;                          ;
Line 1103 
Line 1105 
                         debug3("SSH2_FXP_STATUS %d", status);                          debug3("SSH2_FXP_STATUS %d", status);
   
                         /* Find the request in our queue */                          /* Find the request in our queue */
                         for(ack = TAILQ_FIRST(&acks);                          for (ack = TAILQ_FIRST(&acks);
                             ack != NULL && ack->id != r_id;                              ack != NULL && ack->id != r_id;
                             ack = TAILQ_NEXT(ack, tq))                              ack = TAILQ_NEXT(ack, tq))
                                 ;                                  ;

Legend:
Removed from v.1.51  
changed lines
  Added in v.1.51.2.2