Ulrich Spörlein <u...@freebsd.org> wrote in <20130703092307.ga2...@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
pgp7w1rEUQSSz.pgp
Description: PGP signature