diff options
author | Pierre Ossman <ossman@cendio.se> | 2020-08-21 15:52:45 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2020-08-21 15:55:57 +0200 |
commit | 5c00a95d8ae0b48fae35ba495da21d5e05064fe9 (patch) | |
tree | a9dfda566279c0a13a67b3cab0ff9e352694a424 | |
parent | 6509b60b9d1df683615a973986ff896b5f0aef2d (diff) | |
download | tigervnc-5c00a95d8ae0b48fae35ba495da21d5e05064fe9.tar.gz tigervnc-5c00a95d8ae0b48fae35ba495da21d5e05064fe9.zip |
Call correct wrappers for clipboard handling
We incorrectly called the underlying functions instead of the safe
wrappers for the new clipboard functions. This had the effect of a)
crashing the entire server if one of these functions failed, and b) not
respecting the settings disabling the clipboard.
(cherry picked from commit 331a27addf46d39635fb4d195ae2f94058689832)
-rw-r--r-- | common/rfb/VNCServerST.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/rfb/VNCServerST.cxx b/common/rfb/VNCServerST.cxx index 35f65a2e..f09715a4 100644 --- a/common/rfb/VNCServerST.cxx +++ b/common/rfb/VNCServerST.cxx @@ -339,7 +339,7 @@ void VNCServerST::requestClipboard() if (clipboardClient == NULL) return; - clipboardClient->requestClipboard(); + clipboardClient->requestClipboardOrClose(); } void VNCServerST::announceClipboard(bool available) @@ -353,7 +353,7 @@ void VNCServerST::announceClipboard(bool available) for (ci = clients.begin(); ci != clients.end(); ci = ci_next) { ci_next = ci; ci_next++; - (*ci)->announceClipboard(available); + (*ci)->announceClipboardOrClose(available); } } @@ -367,7 +367,7 @@ void VNCServerST::sendClipboardData(const char* data) for (ci = clipboardRequestors.begin(); ci != clipboardRequestors.end(); ci = ci_next) { ci_next = ci; ci_next++; - (*ci)->sendClipboardData(data); + (*ci)->sendClipboardDataOrClose(data); } clipboardRequestors.clear(); |