socket-util: Close socket on failed dscp modification.
authorEthan Jackson <ethan@nicira.com>
Mon, 16 Apr 2012 19:46:46 +0000 (12:46 -0700)
committerEthan Jackson <ethan@nicira.com>
Tue, 17 Apr 2012 20:03:06 +0000 (13:03 -0700)
commita4efa3fc5dffb8c5011ac889aae83fb5e38fbd85
tree34f770ecfc23ea70bae556fbb91089f34f9a67eb
parent8a984481b76e5f46a84eafdaa065a2984ea8d2fb
socket-util: Close socket on failed dscp modification.

If socket-util failed to modify the dscp bits of an active
connection, it would fail to close the file descriptor potentially
causing a leak. Found by inspection.

Signed-off-by: Ethan Jackson <ethan@nicira.com>
lib/socket-util.c