From 65a75dd85f93a15786b2f8315217bcd17998a77a Mon Sep 17 00:00:00 2001 From: Julien BLACHE Date: Sat, 2 Oct 2010 12:41:45 +0200 Subject: [PATCH] Do not use a scoped address in SDP payload --- src/raop.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/raop.c b/src/raop.c index d5db9aa9..5265f04d 100644 --- a/src/raop.c +++ b/src/raop.c @@ -981,13 +981,21 @@ raop_make_sdp(struct raop_session *rs, struct evrtsp_request *req, char *address "a=rsaaeskey:%s\r\n" \ "a=aesiv:%s\r\n" + char *p; int ret; + p = strchr(rs->address, '%'); + if (p) + *p = '\0'; + /* Add SDP payload */ ret = evbuffer_add_printf(req->output_buffer, SDP_PLD_FMT, session_id, address, rs->address, AIRTUNES_V2_PACKET_SAMPLES, raop_aes_key_b64, raop_aes_iv_b64); + if (p) + *p = '%'; + if (ret < 0) { DPRINTF(E_LOG, L_RAOP, "Out of memory for SDP payload\n");