diff --git a/src/httpd_daap.c b/src/httpd_daap.c index 1fefb2c2..31760928 100644 --- a/src/httpd_daap.c +++ b/src/httpd_daap.c @@ -732,7 +732,7 @@ daap_request_authorize(struct httpd_request *hreq) { DPRINTF(E_LOG, L_DAAP, "Unauthorized request from '%s', DAAP session not found: '%s'\n", hreq->peer_address, hreq->uri_parsed->uri); - httpd_send_error(req, 401, "Unauthorized"); + httpd_send_error(hreq->req, 401, "Unauthorized"); return -1; }