From 7009f547782e124425733c08e1bc65d4e3a3d85d Mon Sep 17 00:00:00 2001 From: david Date: Tue, 30 Mar 2010 19:54:13 +0000 Subject: [PATCH] Fix a silly error I made in afp.lua. Use (pos + 1) % 2 instead of pos % 2 + 1. --- nselib/afp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nselib/afp.lua b/nselib/afp.lua index 6e3c6dd1d..50ba485bb 100644 --- a/nselib/afp.lua +++ b/nselib/afp.lua @@ -628,7 +628,7 @@ Proto = { -- Server offset should begin at an even boundary see link below -- http://developer.apple.com/mac/library/documentation/Networking/Reference/AFP_Reference/Reference/reference.html#//apple_ref/doc/uid/TP40003548-CH3-CHDIEGED - if pos % 2 + 1 ~= 0 then + if (pos + 1) % 2 ~= 0 then pos = pos + 1 end