Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151293177
D38886.id118256.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
671 B
Referenced Files
None
Subscribers
None
D38886.id118256.diff
View Options
diff --git a/usr.sbin/bhyvectl/bhyvectl.c b/usr.sbin/bhyvectl/bhyvectl.c
--- a/usr.sbin/bhyvectl/bhyvectl.c
+++ b/usr.sbin/bhyvectl/bhyvectl.c
@@ -1685,12 +1685,12 @@
send_message(const char *vmname, nvlist_t *nvl)
{
struct sockaddr_un addr;
- int err, socket_fd;
+ int err = 0, socket_fd;
socket_fd = socket(PF_UNIX, SOCK_STREAM, 0);
if (socket_fd < 0) {
perror("Error creating bhyvectl socket");
- err = -1;
+ err = errno;
goto done;
}
@@ -1706,8 +1706,10 @@
goto done;
}
- if (nvlist_send(socket_fd, nvl) < 0)
+ if (nvlist_send(socket_fd, nvl) < 0) {
perror("nvlist_send() failed");
+ err = errno;
+ }
nvlist_destroy(nvl);
done:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 8, 9:25 AM (21 m, 38 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31091420
Default Alt Text
D38886.id118256.diff (671 B)
Attached To
Mode
D38886: bhyvectl: send_message() returns garbage
Attached
Detach File
Event Timeline
Log In to Comment