]> git.ozlabs.org Git - ccan/commit - ccan/net/net.c
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)
commit5c1767485d0879cdacdfeed218f5e91cc2e9f716
tree4f9acb1da6987430516be44d00939db0bd8f3782
parent6251b771b31cfd121efe32d08fe9b2a56546b17b
net: Add check for failure of setsockopt()

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>
ccan/net/net.c