Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102645130
D37117.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
619 B
Referenced Files
None
Subscribers
None
D37117.diff
View Options
diff --git a/usr.sbin/bhyve/rfb.c b/usr.sbin/bhyve/rfb.c
--- a/usr.sbin/bhyve/rfb.c
+++ b/usr.sbin/bhyve/rfb.c
@@ -885,9 +885,12 @@
/* 1b. Read client version */
len = stream_read(cfd, buf, VERSION_LENGTH);
- if (len == VERSION_LENGTH && !strncmp(vbuf, buf, VERSION_LENGTH - 2)) {
- client_ver = buf[VERSION_LENGTH - 2];
+ if (len != VERSION_LENGTH ||
+ strncmp(vbuf, buf, VERSION_LENGTH - 2) != 0) {
+ goto done;
}
+
+ client_ver = buf[VERSION_LENGTH - 2];
if (client_ver != CVERS_3_8 && client_ver != CVERS_3_7) {
/* only recognize 3.3, 3.7 & 3.8. Others dflt to 3.3 */
client_ver = CVERS_3_3;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 16, 6:53 AM (21 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14654805
Default Alt Text
D37117.diff (619 B)
Attached To
Mode
D37117: bhyve: Make sure that the VNC version is initialized
Attached
Detach File
Event Timeline
Log In to Comment