]> git.ipfire.org Git - thirdparty/lxc.git/commit
netlink_open: close socket on error 949/head
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 6 Apr 2016 08:56:04 +0000 (10:56 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 6 Apr 2016 09:06:28 +0000 (11:06 +0200)
commitb73e5969ae6208ce39e5204b75d43954e22b3c0b
tree5e06b43dc5e1480e88b2365e5eba67846949a725
parent5c218031b6797fe9b1105c8e8330ff9bb3d3eca2
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