Merge pull request #486 from bloqaudio/fix/syslog-null-conn

syslog: do not read the connection before there is one
This commit is contained in:
René van Dorst authored and GitHub committed 2026-09-20 09:39:04 +00:00
commit 48c5b0c9cf
1 file changed
+1 -1
+1 -1
View File
@@ -60,7 +60,7 @@ void syslog_stop(void) __banked
void syslog_callback(uint16_t lport) __banked
{
uint16_t syslog_hdr;
if (lport != state.syslog_conn->lport)
if (!state.syslog_conn || lport != state.syslog_conn->lport)
return;
if ((state.readptr != state.writeptr) && state.line_available)