Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove useless comparision of packet header's length with itself #1

Closed
wants to merge 1 commit into from

Conversation

UnitedMarsupials-zz
Copy link

This was one of the items flagged by the PVS-Studios tool:

http://www.viva64.com/en/b/0377/

Maybe, the header-length was meant to be compared with the message-length (m->m_len) -- such as to ensure, the message consists of nothing but header? Don't know -- but the current code, faithfully copied by both NetBSD and FreeBSD, makes no sense. I can not find this part in OpenBSD at all...

It would also seem, the function's second argument (socket) could use const-qualifier. The function-describing comment could stand English-grammar fixes too.

@kame
Copy link
Owner

kame commented Feb 25, 2016

Thanks for the patch. this repository tree is not maintained anymore and just kept for the record.
Please contact NetBSD and FreeBSD team.

@kame kame closed this Feb 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants