Andras - your original diff does not apply to -current as mailed, and you also have a bug when the -v option is used, because you end up putting port names in the portlist array instead of numbers and so -v doesn't work right.Try this instead:
Thank you, I was trying to look for bugs and still didn't find any myself yet. What exact command got that bug to occur? Even when I test now with -v it doesn't happen.
