svn commit: r252408 - head/sbin/ifconfig
Hiroki Sato
hrs at FreeBSD.org
Wed Jul 3 10:36:42 UTC 2013
Ulrich Spörlein <uqs at FreeBSD.org> wrote
in <20130703092307.GA2294 at acme.spoerlein.net>:
uq> > if ((s6 = socket(AF_INET6, SOCK_DGRAM, 0)) < 0) {
uq> > - if (errno != EAFNOSUPPORT)
uq> > + if (errno != EAFNOSUPPORT && error != EPROTONOSUPPORT)
uq> > warn("socket(AF_INET6, SOCK_DGRAM)");
uq> > return;
uq> > }
uq>
uq> This gives undefined behavior, error is uninitialized at this point.
uq>
uq> Found by: Coverity Scan, CID 1042128
Gr, fixed just now. Thank you for the report!
-- Hiroki
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-src-all/attachments/20130703/1dd5e76f/attachment.sig>
More information about the svn-src-all
mailing list