Diff between a1deeaf58909e397998f338e642f10d0632ecf9a and c8226366a8465f9b2ba1e8719f4f13f9e6db0e12
Changed Files
| File | Additions | Deletions | Status |
| android/socket.c | +5 | -0 | modified |
Full Patch
diff --git a/android/socket.c b/android/socket.c
index 00231a3..4722cf8 100644
--- a/android/socket.c
+++ b/android/socket.c
@@ -522,6 +522,11 @@ static void sdp_search_cb(sdp_list_t *recs, int err, gpointer data)
goto fail;
}
+ if (write(rfsock->fd, &chan, sizeof(chan)) != sizeof(chan)) {
+ error("Error sending RFCOMM channel");
+ goto fail;
+ }
+
rfsock->real_sock = g_io_channel_unix_get_fd(io);
rfsock->channel = chan;
connections = g_list_append(connections, rfsock);