mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue