From: Juho Vähä-Herttua Date: Tue, 20 Mar 2012 20:04:04 +0000 (+0200) Subject: Do not calculate the challenge if authentication fails. X-Git-Tag: upstream/0.9.0~4^2~90 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=91c41e1d717a00e2d7f046cc1943a2d7bf5cd475;p=deb_shairplay.git Do not calculate the challenge if authentication fails. --- 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));