From fb03b92c31ad6f99ec5ceea0ac7a5838b5f98218 Mon Sep 17 00:00:00 2001 From: Anuj Jain Date: Fri, 7 Jan 2022 13:31:04 +0530 Subject: [PATCH] Fix Svace issue This patch fixes Svace issue: 474931: DEREF_OF_NULL.RET.STAT Change-Id: Id93e55f8beffba9a35e899a9c5be33d715bfc8dc Signed-off-by: Anuj Jain --- profiles/audio/a2dp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiles/audio/a2dp.c b/profiles/audio/a2dp.c index d2047cd..dc1b7ef 100644 --- a/profiles/audio/a2dp.c +++ b/profiles/audio/a2dp.c @@ -669,7 +669,7 @@ static gboolean endpoint_setconf_ind(struct avdtp *session, DBG("Source %p: Set_Configuration_Ind", sep); setup = a2dp_setup_get(session); - if (!session) + if (!setup) return FALSE; a2dp_sep->stream = stream; -- 2.7.4