From f405d71296bf5d5b641b465d5bc954601c0670e8 Mon Sep 17 00:00:00 2001 From: dmiller Date: Mon, 4 Jan 2016 16:48:08 +0000 Subject: [PATCH] Avoid a script crash when pppoe.Comm.recv returns failure without error message --- nselib/pppoe.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nselib/pppoe.lua b/nselib/pppoe.lua index 2d7d4e58a..075941dc7 100644 --- a/nselib/pppoe.lua +++ b/nselib/pppoe.lua @@ -712,7 +712,7 @@ Comm = { -- if we got no response, just return false as there's -- probably not really an error if ( not(status) ) then - return false + return false, "Did not receive any packets" end local header = PPPoE.Header.parse(l3)