From 91c41e1d717a00e2d7f046cc1943a2d7bf5cd475 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Juho=20V=C3=A4h=C3=A4-Herttua?= Date: Tue, 20 Mar 2012 22:04:04 +0200 Subject: [PATCH] Do not calculate the challenge if authentication fails. --- src/lib/raop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/raop.c b/src/lib/raop.c index 1994ed3..cd99b53 100644 --- a/src/lib/raop.c +++ b/src/lib/raop.c @@ -175,7 +175,7 @@ conn_request(void *ptr, http_request_t *request, http_response_t **response) http_response_add_header(res, "Apple-Jack-Status", "connected; type=analog"); challenge = http_request_get_header(request, "Apple-Challenge"); - if (challenge) { + if (!require_auth && challenge) { char signature[MAX_SIGNATURE_LEN]; memset(signature, 0, sizeof(signature)); -- 2.34.1