Skip to content
Snippets Groups Projects
Commit 27785543 authored by Rob Swindell's avatar Rob Swindell
Browse files

Fix crash when NO_EVENTS option is set for terminal server

Don't deref that null pointer
parent 34e1d1f4
No related branches found
No related tags found
No related merge requests found
Pipeline #7247 failed
......@@ -5388,7 +5388,7 @@ NO_SSH:
sbbs->ssh_mode=false;
#endif
if(events->event_thread_running) {
if(events != nullptr && events->event_thread_running) {
time_t now = time(NULL);
t = event_thread_tick;
if(now > t && now - t > 60 * 60 * 2) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment