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
commit563c35728746be129303ea50e5fd0e6028721ddc (patch)
treed71b4db802a5bd588da161cc28aeda6c4c28934b /lib/custodian/protocoltest/tcp.rb
parent470f5eefbefdc109aaf8c0b5d5ea5e86723f9394 (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