]> git.ozlabs.org Git - ccan/commitdiff
net: Add check for failure of setsockopt()
authorDavid Gibson <david@gibson.dropbear.id.au>
Sun, 2 Apr 2017 15:15:53 +0000 (01:15 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 5 Apr 2017 05:56:33 +0000 (15:56 +1000)
make_listen_fd() didn't check for failure of setsockopt().  There's no
real reason not to, since we have an obvious way to report an error to the
caller.

Found with Coverity Scan.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>

No differences found