Skip to content

Commit 58f15f1

Browse files
committed
Fix Xvnc backend disconnects when some data copied to clipboard
Should fix neutrinolabs#755.
1 parent 8d63c32 commit 58f15f1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

xrdp/xrdp_mm.c

+6-1
Original file line numberDiff line numberDiff line change
@@ -3239,9 +3239,14 @@ server_send_to_channel(struct xrdp_mod *mod, int channel_id,
32393239
{
32403240
if (wm->mm->usechansrv)
32413241
{
3242-
return 1;
3242+
/*
3243+
* Xvnc backend reaches here
3244+
* should not return 1 as this case is not an error
3245+
*/
3246+
return 0;
32433247
}
32443248

3249+
/* vnc proxy mode reaches here */
32453250
return libxrdp_send_to_channel(wm->session, channel_id, data, data_len,
32463251
total_data_len, flags);
32473252
}

0 commit comments

Comments
 (0)