From 70796a4021f71384d7863be0bc216da68e4e201d Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Mon, 20 May 2013 16:22:39 +0100 Subject: We must read a line from the socket if doing a banner comparison. --- lib/custodian/protocoltest/tcp.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.1