From 879efa424a1e984a22fe519de0d4f8b9c8cccdcf Mon Sep 17 00:00:00 2001 From: Alexandros Antonopoulos Date: Mon, 21 Jan 2013 14:44:26 +0100 Subject: [PATCH] avctp: Fix avctp_unregister_browsing_pdu_handler inner loop Inner loop should access the sessions data and not the servers data --- profiles/audio/avctp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiles/audio/avctp.c b/profiles/audio/avctp.c index 4309c6092..db3c34f83 100644 --- a/profiles/audio/avctp.c +++ b/profiles/audio/avctp.c @@ -1572,7 +1572,7 @@ gboolean avctp_unregister_browsing_pdu_handler(unsigned int id) GSList *s; for (s = server->sessions; s; s = s->next) { - struct avctp *session = l->data; + struct avctp *session = s->data; struct avctp_channel *browsing = session->browsing; GSList *h; -- 2.47.3