]> git.etc.gen.nz Git - spong.git/commitdiff
added "quit\n" to the send string in check_tcp() to properly terminate conn. spong-2_6c
authorStephen L Johnson <sjohnson@monsters.org>
Thu, 10 Feb 2000 02:22:36 +0000 (02:22 +0000)
committerStephen L Johnson <sjohnson@monsters.org>
Thu, 10 Feb 2000 02:22:36 +0000 (02:22 +0000)
src/lib/Spong/Network/plugins/check_ftp
src/lib/Spong/Network/plugins/check_smtp

index f0c4c1eb98684cd4eed9b0a774b1965ae6bc5c4e..71dee21a7f22e33a7fd0ea16d0898e9bf073aee2 100755 (executable)
@@ -4,7 +4,7 @@ $PLUGINS{'ftp'} = \&check_ftp;
 # Check FTP service using the built-in check_simple subroutine
 sub check_ftp {
     my ($host) = @_;
-    return &check_simple( $host, 21, "", "^\s*220", "ftp" );
+    return &check_simple( $host, 21, "quit\n", "^\s*220", "ftp" );
 }
 
 1;
index d95ad1bbb725f35bd908341e60762a89191e1b37..5bb9e424f797791e13af264c9d9f1ef6c72d35e5 100755 (executable)
@@ -4,7 +4,7 @@ $PLUGINS{'smtp'} = \&check_smtp;
 # Check the smtp service with the built-in check_simple routine
 sub check_smtp {
     my ($host) = @_;
-    return &check_simple( $host, 25, "", "^\s*220", "smtp" );
+    return &check_simple( $host, 25, "quit\n", "^\s*220", "smtp" );
 }
 
 1;