summaryrefslogtreecommitdiff
path: root/lib/custodian/protocoltest/tcp.rb
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2013-05-20 16:22:39 +0100
committerSteve Kemp <steve@steve.org.uk>2013-05-20 16:22:39 +0100
commit70796a4021f71384d7863be0bc216da68e4e201d (patch)
treee75661f3c3716b152238b2683180b518d33f674d /lib/custodian/protocoltest/tcp.rb
parentbefdfc2b184c45323d388829be1fb9dde2a6f32d (diff)
We must read a line from the socket if doing a banner comparison.
Diffstat (limited to 'lib/custodian/protocoltest/tcp.rb')
-rw-r--r--lib/custodian/protocoltest/tcp.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/custodian/protocoltest/tcp.rb b/lib/custodian/protocoltest/tcp.rb
index 52bed15..b4a23b2 100644
--- a/lib/custodian/protocoltest/tcp.rb
+++ b/lib/custodian/protocoltest/tcp.rb
@@ -127,7 +127,7 @@ module Custodian
# reset the error, in case we were previously executed.
@error = nil
- return( run_test_internal( @host, @port, @banner ) )
+ return( run_test_internal( @host, @port, @banner, ( ! @banner.nil? ) ) )
end