Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149183520
D37117.1789642042.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
619 B
Referenced Files
None
Subscribers
None
D37117.1789642042.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
Thu, Sep 17, 10:47 AM (1 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29726597
Default Alt Text
D37117.1789642042.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