Diff between e770585f46f3f9f3fab25104c7dff0ca3617df9e and c89bc105a087cdb3fae4993c416bedd9ad7c9bac

Changed Files

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

Full Patch

diff --git a/android/hal-gatt.c b/android/hal-gatt.c
index e1faccb..93dc066 100644
--- a/android/hal-gatt.c
+++ b/android/hal-gatt.c
@@ -1231,6 +1231,8 @@ static bt_status_t send_response(int conn_id, int trans_id, int status,
 	struct hal_cmd_gatt_server_send_response *cmd = (void *) buf;
 	size_t cmd_len = sizeof(*cmd) + sizeof(*response);
 
+	memset(buf, 0 , IPC_MTU);
+
 	if (!interface_ready())
 		return BT_STATUS_NOT_READY;