From bd77d65e3b02535f9358e8ed8dae4b7abeb0452f Mon Sep 17 00:00:00 2001 From: dmiller Date: Sat, 20 Aug 2016 00:08:02 +0000 Subject: [PATCH] Avoid another unsigned vs signed integer overflow in packing --- nselib/rmi.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nselib/rmi.lua b/nselib/rmi.lua index e85e55afe..a5825d862 100644 --- a/nselib/rmi.lua +++ b/nselib/rmi.lua @@ -786,7 +786,7 @@ function RmiDataStream:writeMethodCall(out,objNum, hash, op, arguments) -- Send Call: dos:writeByte(0x50) -- Send Magic 0xaced - dos:writeShort(0xACED) + dos:writeUnsignedShort(0xACED) -- Send version 0x0005 dos:writeShort(0x0005) -- Send TC_BLOKDATA