diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2008-06-10 02:47:59 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2008-06-10 02:47:59 +0000 |
commit | 89f8b57a8cdf51d10cbfc4e80cd3071b10db221d (patch) | |
tree | 109683e596ad64d62ea4ec720574b3d7122f94de /common | |
parent | 9fdd6a8c1358daa9360ea2269ee357402ac9ed83 (diff) |
Fix storing socket fd in bt_sco_connect
Diffstat (limited to 'common')
-rw-r--r-- | common/glib-helper.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/glib-helper.c b/common/glib-helper.c index 9152c1b4..665a1880 100644 --- a/common/glib-helper.c +++ b/common/glib-helper.c @@ -667,6 +667,8 @@ static BtIOError sco_connect(BtIO *io, BtIOFunc func) return BT_IO_FAILED; } + io_ctxt->fd = sk; + memset(&addr, 0, sizeof(addr)); addr.sco_family = AF_BLUETOOTH; str2ba(io->dst, &addr.sco_bdaddr); |