Page MenuHomeFreeBSD

bhyve: Make sure that the VNC version is initialized
ClosedPublic

Authored by markj on Oct 25 2022, 3:30 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 13, 3:59 PM
Unknown Object (File)
Tue, Oct 29, 5:52 PM
Unknown Object (File)
Oct 2 2024, 8:37 AM
Unknown Object (File)
Sep 19 2024, 2:33 AM
Unknown Object (File)
Sep 18 2024, 7:43 PM
Unknown Object (File)
Sep 16 2024, 5:20 AM
Unknown Object (File)
Sep 12 2024, 8:05 AM
Unknown Object (File)
Sep 10 2024, 8:45 PM

Details

Summary

clang warned that "client_ver" can be left uninitialized. This change
causes the new connection to be dropped if a version string is not
presented.

MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

markj requested review of this revision.Oct 25 2022, 3:30 PM
corvink added inline comments.
usr.sbin/bhyve/rfb.c
887–897

What do you think about my suggestion? It avoids nested ifs.

markj added inline comments.
usr.sbin/bhyve/rfb.c
887–897

Thanks, that is better than what I did.

markj marked an inline comment as done.

Restructure to reduce nesting.

rew added inline comments.
usr.sbin/bhyve/rfb.c
890

looks like this got crossed up on the previous update

This revision is now accepted and ready to land.Oct 26 2022, 9:32 PM