Commit 06cff31
committed
libvncserver: mitigate FORTIFY crash in listenerRun()
With the previous commit acac779
the select() call now times out, opening up for a race condition
where rfbShutdownSockets() would set the listening sockets to -1,
the select would time out and the FD_ISSET() call encounter a -1
socket.
This is not 100% threadsafe but better than before.1 parent acac779 commit 06cff31
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
668 | 668 | | |
669 | 669 | | |
670 | 670 | | |
671 | | - | |
| 671 | + | |
672 | 672 | | |
673 | | - | |
| 673 | + | |
674 | 674 | | |
675 | 675 | | |
676 | 676 | | |
| |||
0 commit comments