]> git.ipfire.org Git - thirdparty/lxc.git/commit
netlink_open: close socket on error
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 6 Apr 2016 08:56:04 +0000 (10:56 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 17 Nov 2016 23:16:59 +0000 (18:16 -0500)
commitb8b435e392df8d3658c7b119ea84ea2a156f9492
tree7d852fe961add40652d16ddc48db130b1408c9fa
parent3b860b7246852f1da60bb787e33c2709a4293105
netlink_open: close socket on error

All uses of netlink_open() assume that on error the
nl_handler doesn't need to be closed, but some error cases
happen after the socket was opened successfully and used to
simply return -errno.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/lxc/nl.c