summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2013-09-14 16:18:47 +0100
committerSteve Holme <steve_holme@hotmail.com>2013-09-14 16:18:47 +0100
commit45e0a661cece6a2c2af2e946b5ef67b5aac01c68 (patch)
treee84569962072ad43bce99bf3da4fb9ace88630ce
parent4d6ef6297ae9b6944f647c562ff447f8774fe0b1 (diff)
downloadcurl-45e0a661cece6a2c2af2e946b5ef67b5aac01c68.tar.gz
ftpserver.pl: Corrected invalid argument check in POP3 TOP handler
...which was accidentally introduced in commit 4d6ef6297ae9b6.
-rwxr-xr-xtests/ftpserver.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ftpserver.pl b/tests/ftpserver.pl
index 075e02e77..78e50c6a5 100755
--- a/tests/ftpserver.pl
+++ b/tests/ftpserver.pl
@@ -1584,7 +1584,7 @@ sub TOP_pop3 {
if (!grep /^TOP$/, @capabilities) {
sendcontrol "-ERR Unrecognized command\r\n";
}
- elsif ((!$msg) || (!$lines)) {
+ elsif (($msg eq "") || ($lines eq "")) {
sendcontrol "-ERR Protocol error\r\n";
}
else {