Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109448724
D23591.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
580 B
Referenced Files
None
Subscribers
None
D23591.diff
View Options
Index: head/usr.sbin/bhyve/rfb.c
===================================================================
--- head/usr.sbin/bhyve/rfb.c
+++ head/usr.sbin/bhyve/rfb.c
@@ -76,6 +76,7 @@
#define DPRINTF(params) if (rfb_debug) PRINTLN params
#define WPRINTF(params) PRINTLN params
+#define VERSION_LENGTH 12
#define AUTH_LENGTH 16
#define PASSWD_LENGTH 8
@@ -769,7 +770,7 @@
stream_write(cfd, vbuf, strlen(vbuf));
/* 1b. Read client version */
- len = read(cfd, buf, sizeof(buf));
+ len = stream_read(cfd, buf, VERSION_LENGTH);
/* 2a. Send security type */
buf[0] = 1;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Feb 6, 5:06 AM (21 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16487537
Default Alt Text
D23591.diff (580 B)
Attached To
Mode
D23591: bhyve: use stream_read() to read 12 bytes of RFB client version
Attached
Detach File
Event Timeline
Log In to Comment