summaryrefslogtreecommitdiff
path: root/ftp.c
diff options
context:
space:
mode:
authorewt <devnull@localhost>1996-07-12 20:28:43 +0000
committerewt <devnull@localhost>1996-07-12 20:28:43 +0000
commit0b020614b25ee6a67013295271b8827e2b0d3bb9 (patch)
tree3c0b61efa42162b4aa0f5b498223f8149c327400 /ftp.c
parente837ec5148fc320288caecbae81144861450766c (diff)
downloadrpm-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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ftp.c b/ftp.c
index b02e817cc..a9e2ec623 100644
--- a/ftp.c
+++ b/ftp.c
@@ -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;