Browse Subversion Repository
Diff of /tags/REL-2.2/ftp_quit.c
Parent Directory
| Revision Log
| Patch
| 39 |
char str1[] = "QUIT\r\n"; |
char str1[] = "QUIT\r\n"; |
| 40 |
int res; |
int res; |
| 41 |
|
|
| 42 |
|
if( ftp->socket < 0 ) return LIBOFTP_ERROR; |
| 43 |
|
|
| 44 |
/* |
/* |
| 45 |
* send QUIT command |
* send QUIT command |
| 46 |
*/ |
*/ |
| 63 |
*/ |
*/ |
| 64 |
CLOSE: |
CLOSE: |
| 65 |
close( ftp->socket ); |
close( ftp->socket ); |
| 66 |
ftp->socket = 0; |
ftp->socket = -1; |
| 67 |
|
|
| 68 |
return res; |
return res; |
| 69 |
} |
} |
|
|
Legend:
| Removed from v.46 |
|
| changed lines |
| |
Added in v.50 |
|
|
|