git: libc/net: Fix some issues in our inet6_opt_init() (from RFC 3542).
Sascha Wildner
swildner at crater.dragonflybsd.org
Thu Jan 30 06:33:03 PST 2014
commit 98651c6e0e1c3b7a6b8650b55b473fcc745a22b7
Author: Sascha Wildner <saw at online.de>
Date: Thu Jan 30 15:23:52 2014 +0100
libc/net: Fix some issues in our inet6_opt_init() (from RFC 3542).
* The RFC says (in section 10.1) that only when extbuf is not NULL,
extlen shall be checked, so don't perform this check when NULL is
passed.
* socklen_t is unsigned, so checking extlen for less than zero is
not needed.
Summary of changes:
lib/libc/net/ip6opt.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/98651c6e0e1c3b7a6b8650b55b473fcc745a22b7
--
DragonFly BSD source repository
More information about the Commits
mailing list