Develop and Download Open Source Software

Browse Subversion Repository

Diff of /tags/REL-2.2/ftp_quit.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 32 by hirohitohigashi, Sat Feb 28 15:03:18 2009 UTC revision 46 by hirohitohigashi, Wed Mar 4 08:27:07 2009 UTC
# Line 44  int ftp_quit( LIBOFTP *ftp ) Line 44  int ftp_quit( LIBOFTP *ftp )
44       */       */
45      if( ftp_send_command( ftp, str1 ) < 0 ) {      if( ftp_send_command( ftp, str1 ) < 0 ) {
46          DEBUGPRINT1( "command sending error. %s\n", str1 );          DEBUGPRINT1( "command sending error. %s\n", str1 );
47          return LIBOFTP_ERROR_OS;          res = LIBOFTP_ERROR_OS;
48            goto CLOSE;
49      }      }
50    
51      res = ftp_receive_response( ftp, ftp->error_message, sizeof(ftp->error_message)-1 );      res = ftp_receive_response( ftp, ftp->error_message, sizeof(ftp->error_message)-1 );
# Line 58  int ftp_quit( LIBOFTP *ftp ) Line 59  int ftp_quit( LIBOFTP *ftp )
59      /*      /*
60       * close socket.       * close socket.
61       */       */
62    CLOSE:
63      close( ftp->socket );      close( ftp->socket );
64      ftp->socket = 0;      ftp->socket = 0;
65    

Legend:
Removed from v.32  
changed lines
  Added in v.46

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26