Diff between 34c4ae9ad8e809d00f04564071a37a4b8c378506 and 002a64f595010f29fbe85f8ee1a5dcc9da472270

Changed Files

File Additions Deletions Status
android/socket.c +6 -0 modified

Full Patch

diff --git a/android/socket.c b/android/socket.c
index 5901d45..90561dc 100644
--- a/android/socket.c
+++ b/android/socket.c
@@ -410,6 +410,12 @@ static int handle_listen(void *buf)
 	DBG("real_sock %d fd %d hal_fd %d", rfsock->real_sock, rfsock->fd,
 								hal_fd);
 
+	if (write(rfsock->fd, &chan, sizeof(chan)) != sizeof(chan)) {
+		error("Error sending RFCOMM channel");
+		cleanup_rfsock(rfsock);
+		return -1;
+	}
+
 	return hal_fd;
 }