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?
to your account
In the ipv4.Header.Marshal method, the code does not handle the possible error returned by h.Src.To4(). On the other hand, the possible error returned by h.Dst.To4() is handled correctly.
Another small issue is that the slice returned by To4() is still sliced (ip[:net.IPv4len]); this is unnecessary.
The text was updated successfully, but these errors were encountered:
/cc @mikioh @ianlancetaylor
Sorry, something went wrong.
No branches or pull requests