Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F167750929
D37117.id.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.id.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
Tue, Aug 25, 6:55 AM (19 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37224963
Default Alt Text
D37117.id.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