]> granicus.if.org Git - curl/commitdiff
ftpserver.pl: Corrected invalid argument check in POP3 TOP handler
authorSteve Holme <steve_holme@hotmail.com>
Sat, 14 Sep 2013 15:18:47 +0000 (16:18 +0100)
committerSteve Holme <steve_holme@hotmail.com>
Sat, 14 Sep 2013 15:18:47 +0000 (16:18 +0100)
...which was accidentally introduced in commit 4d6ef6297ae9b6.

tests/ftpserver.pl

index 075e02e774ec954ce07b9ab9a0f88e015f820dcc..78e50c6a5b51fb211db330f4d3274448673c01c2 100755 (executable)
@@ -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 {