Skip to content
Commit b7058842 authored by David S. Miller's avatar David S. Miller
Browse files

net: Make setsockopt() optlen be unsigned.



This provides safety against negative optlen at the type
level instead of depending upon (sometimes non-trivial)
checks against this sprinkled all over the the place, in
each and every implementation.

Based upon work done by Arjan van de Ven and feedback
from Linus Torvalds.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent eb1cf0f8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment