Browse Subversion Repository
Diff of /tags/REL-1.1/ftpauth.c
Parent Directory
| Revision Log
| Patch
| 244 |
|
|
| 245 |
if (FD_ISSET(sck, &readfds)) { |
if (FD_ISSET(sck, &readfds)) { |
| 246 |
|
|
| 247 |
if ( (n= recv(sck, buf, 1022, 0)) < 0) { |
if ( (n= recv(sck, buf, 1022, 0)) < 0) { |
| 248 |
if (verbose) { |
if (verbose) { |
| 249 |
perror("recv()"); |
perror("recv()"); |
| 250 |
} |
} |
| 251 |
return -1; |
return -1; |
| 252 |
} |
} |
| 253 |
|
buf[n] = '\0'; |
| 254 |
|
|
| 255 |
if (verbose) |
if (verbose) |
| 256 |
printf("[Server] %s\n", buf); |
printf("[Server] %s\n", buf); |
| 257 |
|
|
| 258 |
} |
} |
| 264 |
} |
} |
| 265 |
} |
} |
| 266 |
|
|
|
buf[n] = '\0'; |
|
|
|
|
| 267 |
if (ftp_login_handler(buf, 0) != 0) { |
if (ftp_login_handler(buf, 0) != 0) { |
| 268 |
|
|
| 269 |
return -1; |
return -1; |
|
|
Legend:
| Removed from v.1 |
|
| changed lines |
| |
Added in v.6 |
|
|
| |