]> granicus.if.org Git - curl/commitdiff
bail out on crap received, makes test case 402 *NOT* ruin the test series
authorDaniel Stenberg <daniel@haxx.se>
Thu, 12 Dec 2002 18:07:10 +0000 (18:07 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 12 Dec 2002 18:07:10 +0000 (18:07 +0000)
anymore!

tests/ftpserver.pl

index 503f1a5cedba9e9d187edb2dfb2fc4a80d7c02ef..37bd78307d7305f46b928cc42e57b75f0252e301 100644 (file)
@@ -439,7 +439,8 @@ for ( $waitedpid = 0;
 
         unless (m/^([A-Z]{3,4})\s?(.*)/i) {
             print "500 '$_': command not understood.\r\n";
-            next;
+            logmsg "unknown crap received, bailing out hard\n";
+            last;
         }
         my $FTPCMD=$1;
         my $FTPARG=$2;