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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user