]> git.ipfire.org Git - thirdparty/libvirt.git/commit
bhyve: do not cleanup unallocated networks on fail
authorRoman Bogorodskiy <bogorodskiy@gmail.com>
Fri, 13 Jun 2014 14:56:59 +0000 (18:56 +0400)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Fri, 13 Jun 2014 16:44:36 +0000 (20:44 +0400)
commit5c1f82efae32d5bcd286dc07a2b3549176dc5093
tree073c5966f8c5fd88b9c8cb26e44d4041d8ec467c
parent381a3dbdab206e4048bab73ce2dd1c72b396814d
bhyve: do not cleanup unallocated networks on fail

virBhyveProcessStart() calls bhyveNetCleanup() if it fails. However,
it might fail earlier than networks are allocated, so modify
bhyveNetCleanup() to check if net->ifname is not NULL before
going further with the cleanup.
src/bhyve/bhyve_process.c