mirror of
https://github.com/nmap/nmap.git
synced 2026-06-27 19:53:10 +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:
parent
3ef4f3f017
commit
7009f54778
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue