bhyvectl: correct socket_fd closing in send_message
Reviewed by: corvink, markj MFC after: 1 week Sponsored by: vStack Differential Revision: https://reviews.freebsd.org/D38889
This commit is contained in:
parent
89fe7b98fe
commit
b64ba24264
@ -1707,7 +1707,7 @@ send_message(const char *vmname, nvlist_t *nvl)
|
||||
nvlist_destroy(nvl);
|
||||
|
||||
done:
|
||||
if (socket_fd > 0)
|
||||
if (socket_fd >= 0)
|
||||
close(socket_fd);
|
||||
return (err);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user