Diff between 6a44a69acead3e0d5a5bf5879f7ae312d419e022 and 67eccade2d38f790b0698b6e2cbcd6282b21e534

Changed Files

File Additions Deletions Status
android/gatt.c +5 -0 modified

Full Patch

diff --git a/android/gatt.c b/android/gatt.c
index 625b7df..b8074a9 100644
--- a/android/gatt.c
+++ b/android/gatt.c
@@ -978,6 +978,11 @@ static void notify_mtu_change(void *data, void *user_data)
 	if (conn->device != device)
 		return;
 
+	if (!conn->app) {
+		error("gatt: can't notify mtu - no app registered for conn");
+		return;
+	}
+
 	switch (conn->app->type) {
 	case GATT_CLIENT:
 		notify_client_mtu_change(conn, true);