mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-05-12 00:31:05 -04:00
When setStreamStart()->loadMonitor() failed (e.g. monitor id not found, shm not yet mapped), zms continued into runStream() for non-SINGLE stream types and dereferenced a null Monitor shared_ptr at monitor->GetFPS(), crashing in get_capture_fps with fault address 0x618. Bail early after the STREAM_SINGLE branch with a "Not connected" text frame, mirroring the SINGLE-type recovery. For STREAM_JPEG, emit the multipart Content-Type first so sendTextFrame produces a well-formed response. Placed before openComms()/command_processor spawn so there is no resource teardown to do on the bail path.