From f275a60401467770eb887bbdacf213e2fe81e72d Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Thu, 8 May 2014 15:23:17 +0200 Subject: [PATCH] rtsp: strip remote-cookie during reply-matching We need to drop the remote-cookie flag when matching replies. Otherwise, we will never find the local request. Signed-off-by: David Herrmann --- src/shared/rtsp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/shared/rtsp.c b/src/shared/rtsp.c index b23acba..5ea0bd3 100644 --- a/src/shared/rtsp.c +++ b/src/shared/rtsp.c @@ -2586,7 +2586,9 @@ static int rtsp_call_reply(struct rtsp *bus, struct rtsp_message *reply) uint64_t *elem; int r; - if (!shl_htable_lookup_u64(&bus->waiting, reply->cookie, &elem)) + if (!shl_htable_lookup_u64(&bus->waiting, + reply->cookie & ~RTSP_FLAG_REMOTE_COOKIE, + &elem)) return 0; m = rtsp_message_from_htable(elem);