aboutsummaryrefslogtreecommitdiff
path: root/lib/libalias/alias_ftp.c
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2001-06-27 14:11:25 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2001-06-27 14:11:25 +0000
commit3277d1c4985f3c0d38dfa40b42ab0346ad78c784 (patch)
tree2dc26a694b551858c6e30a76f57dd9c1fd1ae7cf /lib/libalias/alias_ftp.c
parent6206c8dc91838718b0a085b0d51e349ec01e6f43 (diff)
downloadsrc-3277d1c4985f3c0d38dfa40b42ab0346ad78c784.tar.gz
src-3277d1c4985f3c0d38dfa40b42ab0346ad78c784.zip
Fixed the brain-o in rev. 1.10: the logic check was reversed.
Reported by: Bernd Fuerwitt <bf@fuerwitt.de>
Notes
Notes: svn path=/head/; revision=78886
Diffstat (limited to 'lib/libalias/alias_ftp.c')
-rw-r--r--lib/libalias/alias_ftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalias/alias_ftp.c b/lib/libalias/alias_ftp.c
index eba434bd7c75..4d488e2a287d 100644
--- a/lib/libalias/alias_ftp.c
+++ b/lib/libalias/alias_ftp.c
@@ -131,7 +131,7 @@ int maxpacketsize /* The maximum size this packet can grow to (including header
* properly terminated with CRLF.
*/
pflags = GetProtocolFlags(link);
- if (dlen <= MAX_MESSAGE_SIZE && (pflags & WAIT_CRLF)) {
+ if (dlen <= MAX_MESSAGE_SIZE && !(pflags & WAIT_CRLF)) {
ftp_message_type = FTP_UNKNOWN_MESSAGE;
if (ntohs(tc->th_dport) == FTP_CONTROL_PORT_NUMBER) {