diff options
| author | Ruslan Ermilov <ru@FreeBSD.org> | 2001-09-21 14:38:36 +0000 |
|---|---|---|
| committer | Ruslan Ermilov <ru@FreeBSD.org> | 2001-09-21 14:38:36 +0000 |
| commit | c1dd00f75c909e5d2a68852c310d449f2ca6f702 (patch) | |
| tree | 2c8c515452b6abe9c7e4e3eeca3b6162fa919d12 /lib/libalias/alias_ftp.c | |
| parent | e284cfe41ecd3cdbca71365d635a5d3cb432c481 (diff) | |
Notes
Diffstat (limited to 'lib/libalias/alias_ftp.c')
| -rw-r--r-- | lib/libalias/alias_ftp.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libalias/alias_ftp.c b/lib/libalias/alias_ftp.c index 7dee3f8bc62c..7e51e73d2f3c 100644 --- a/lib/libalias/alias_ftp.c +++ b/lib/libalias/alias_ftp.c @@ -145,8 +145,10 @@ int maxpacketsize /* The maximum size this packet can grow to (including header */ if (ParseFtp227Reply(sptr, dlen)) ftp_message_type = FTP_227_REPLY; - else if (ParseFtp229Reply(sptr, dlen)) + else if (ParseFtp229Reply(sptr, dlen)) { ftp_message_type = FTP_229_REPLY; + true_addr.s_addr = pip->ip_src.s_addr; + } } if (ftp_message_type != FTP_UNKNOWN_MESSAGE) @@ -464,8 +466,7 @@ NewFtpMessage(struct ip *pip, struct alias_link *ftp_link; /* Security checks. */ - if (ftp_message_type != FTP_229_REPLY && - pip->ip_src.s_addr != true_addr.s_addr) + if (pip->ip_src.s_addr != true_addr.s_addr) return; if (true_port < IPPORT_RESERVED) |
