From 3ab8fc27f83fdee46af7c1a9778eff2b42d2e8bf Mon Sep 17 00:00:00 2001 From: nnposter Date: Thu, 4 Jul 2024 04:04:49 +0000 Subject: [PATCH] Correctly handle empty result sets. See #2784 --- nselib/mssql.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nselib/mssql.lua b/nselib/mssql.lua index 16cb4baf0..250819a5c 100644 --- a/nselib/mssql.lua +++ b/nselib/mssql.lua @@ -3102,7 +3102,7 @@ Helper = while( pos < data:len() ) do local rowtag = string.unpack("B", data, pos) - if ( rowtag == TokenType.Row ) then + if rowtag == TokenType.Row or rowtag == TokenType.Done then break end