Develop and Download Open Source Software

Browse Subversion Repository

Diff of /tags/REL-1.1/ftpauth.c

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

revision 1 by hirohitohigashi, Wed Feb 18 08:06:53 2009 UTC revision 6 by hirohitohigashi, Fri Feb 20 02:19:48 2009 UTC
# Line 244  int ftp_auth(int sck, char *usr, char *p Line 244  int ftp_auth(int sck, char *usr, char *p
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                  }                  }
# Line 263  int ftp_auth(int sck, char *usr, char *p Line 264  int ftp_auth(int sck, char *usr, char *p
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

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