1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-29 19:09:01 +00:00

Fix a silly error I made in afp.lua. Use (pos + 1) % 2 instead of

pos % 2 + 1.
This commit is contained in:
david
2010-03-30 19:54:13 +00:00
parent 3ef4f3f017
commit 7009f54778

View File

@@ -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