Diff between 7f3adaeb6ffd090c4fbf84b1f9144a4c3545c490 and e4f4e50353762ca4dc7818ac5d347190a2cc8a54

Changed Files

File Additions Deletions Status
android/health.c +2 -0 modified

Full Patch

diff --git a/android/health.c b/android/health.c
index 7d64a63..0eeb0bd 100644
--- a/android/health.c
+++ b/android/health.c
@@ -820,6 +820,8 @@ static void bt_health_register_app(const void *buf, uint16_t len)
 
 	app = create_health_app(app_name, provider, srv_name, srv_descr,
 							cmd->num_of_mdep);
+	if (!app)
+		goto fail;
 
 	if (!queue_push_tail(apps, app))
 		goto fail;