aboutsummaryrefslogtreecommitdiff
path: root/health
diff options
context:
space:
mode:
authorSantiago Carot-Nemesio <sancane@gmail.com>2010-11-16 10:09:30 +0100
committerJohan Hedberg <johan.hedberg@nokia.com>2010-11-18 16:56:27 +0200
commit59d99d49674d950d3d44c39b7b596d193c29fbde (patch)
treea4ef49220fbec1ee0d52d327468dabf082314131 /health
parent1242e834f339d35a4f94ddfac2db4e6ebcd92ba3 (diff)
downloadbluez-59d99d49674d950d3d44c39b7b596d193c29fbde.tar.gz
Return proper response code if there is an error creating echo channel
Diffstat (limited to 'health')
-rw-r--r--health/hdp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/health/hdp.c b/health/hdp.c
index 01c7ca0b..3a633d9f 100644
--- a/health/hdp.c
+++ b/health/hdp.c
@@ -1067,6 +1067,9 @@ static uint8_t hdp_mcap_mdl_conn_req_cb(struct mcap_mcl *mcl, uint8_t mdepid,
}
dev->ndc = create_channel(dev, *conf, NULL, mdlid, NULL, NULL);
+ if (!dev->ndc)
+ return MCAP_MDL_BUSY;
+
return MCAP_SUCCESS;
}