]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Make zlib encoding messages idempotent.
authormarkj <markj@FreeBSD.org>
Wed, 19 Jun 2019 16:09:20 +0000 (16:09 +0000)
committermarkj <markj@FreeBSD.org>
Wed, 19 Jun 2019 16:09:20 +0000 (16:09 +0000)
commit395e29f3c0360dadaca7935a0eaf872620f6e4c9
treed6f3a8c8bbaeb4e4a65252c9dece63c847966866
parent6839a1dd36aa3022da6bc469f70667cb895a43a3
Make zlib encoding messages idempotent.

Otherwise duplicate messages can trigger a reinitialization of the
compression stream while the update thread is running.  Also ensure
that the stream is initialized before the update thread may attempt
to use it.

PR: 238333
Reviewed by: cem, rgrimes
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D20673
usr.sbin/bhyve/rfb.c