diff options
author | ewt <devnull@localhost> | 1996-07-12 20:28:43 +0000 |
---|---|---|
committer | ewt <devnull@localhost> | 1996-07-12 20:28:43 +0000 |
commit | 0b020614b25ee6a67013295271b8827e2b0d3bb9 (patch) | |
tree | 3c0b61efa42162b4aa0f5b498223f8149c327400 /ftp.c | |
parent | e837ec5148fc320288caecbae81144861450766c (diff) | |
download | rpm-0b020614b25ee6a67013295271b8827e2b0d3bb9.tar.gz rpm-0b020614b25ee6a67013295271b8827e2b0d3bb9.tar.bz2 rpm-0b020614b25ee6a67013295271b8827e2b0d3bb9.zip |
removed printf, fixed inet_aton() result check
CVS patchset: 803
CVS date: 1996/07/12 20:28:43
Diffstat (limited to 'ftp.c')
-rw-r--r-- | ftp.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -142,7 +142,7 @@ static int getHostAddress(const char * host, struct in_addr * address) { struct hostent * hostinfo; if (isdigit(host[0])) { - if (inet_aton(host, address)) { + if (!inet_aton(host, address)) { return FTPERR_BAD_HOST_ADDR; } } else { @@ -301,7 +301,6 @@ int ftpGetFile(int sock, char * remotename, int dest) { if (*chptr == ',') *chptr = '.'; } - printf("remote ip is: %s\n", passReply); if (!inet_aton(passReply, &dataAddress.sin_addr)) return FTPERR_PASSIVE_ERROR; |