Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 03 Jul 2013 18:51:50 +0900 (JST)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        uqs@FreeBSD.org
Cc:        svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org
Subject:   Re: svn commit: r252408 - head/sbin/ifconfig
Message-ID:  <20130703.185150.1466238345990988743.hrs@allbsd.org>
In-Reply-To: <20130703092307.GA2294@acme.spoerlein.net>
References:  <201306300737.r5U7bWkB096070@svn.freebsd.org> <20130703092307.GA2294@acme.spoerlein.net>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Ulrich Spörlein <uqs@FreeBSD.org> wrote
  in <20130703092307.GA2294@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

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (FreeBSD)

iEYEABECAAYFAlHT9DYACgkQTyzT2CeTzy3fnACgjvHVE7v9LSAF+Ju0D1sfamB3
t4UAoM7oXuub3FJ1FlcQ8mYahZncpeRl
=OJBL
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130703.185150.1466238345990988743.hrs>