We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4571951 commit 0ab7a73Copy full SHA for 0ab7a73
1 file changed
libvncserver/rfbserver.c
@@ -870,12 +870,15 @@ rfbProcessClientInitMessage(rfbClientPtr cl)
870
rfbReleaseClientIterator(iterator);
871
} else {
872
iterator = rfbGetClientIterator(cl->screen);
873
- while ((otherCl = rfbClientIteratorNext(iterator)) != NULL) {
+ rfbClientPtr nextCl, otherCl = rfbClientIteratorNext(iterator);
874
+ while (otherCl) {
875
+ nextCl = rfbClientIteratorNext(iterator);
876
if ((otherCl != cl) && (otherCl->state == RFB_NORMAL)) {
877
rfbLog("Not shared - closing connection to client %s\n",
878
otherCl->host);
879
rfbCloseClient(otherCl);
880
}
881
+ otherCl = nextCl;
882
883
884
0 commit comments