diff --git a/nselib/rpcap.lua b/nselib/rpcap.lua index 5a7dde96c..98bd82d80 100644 --- a/nselib/rpcap.lua +++ b/nselib/rpcap.lua @@ -315,7 +315,7 @@ Comm = { recv = function(self) local status, hdr_data = self.socket:receive_buf(match.numbytes(RPCAP.Header.size), true) if ( not(status) ) then - return status, data + return status, hdr_data end local header = RPCAP.Header.parse(hdr_data)