Skip to content

Commit

Permalink
[httpd] Fix startup crash after merge commit 4cbce79
Browse files Browse the repository at this point in the history
With debug level loggint, the crash would be preceeded with "Checking if client
'(null)' is a speaker"

Resolves #1771
  • Loading branch information
ejurgensen committed Jun 22, 2024
1 parent d6d46de commit 7ddb4e9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/httpd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1201,6 +1201,11 @@ httpd_xcode_profile_get(struct httpd_request *hreq)
struct player_speaker_info spk;
int ret;

// No peer address if the function is called from httpd_daap.c when the DAAP
// cache is being updated
if (!hreq->peer_address)
return XCODE_NONE;

DPRINTF(E_DBG, L_HTTPD, "Checking if client '%s' is a speaker\n", hreq->peer_address);

// A Roku Soundbridge may also be RCP device/speaker for which the user may
Expand Down

0 comments on commit 7ddb4e9

Please sign in to comment.