summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2004-11-21 16:56:03 +0000
committerMarcel Holtmann <marcel@holtmann.org>2004-11-21 16:56:03 +0000
commit338653545090b72df3e97610ce8dc9b6f1a4e6d4 (patch)
tree9998f2d396f14bb3fbffb4962214dda404957b51
parentd500612b723b88342b46c18e57730cec4b1d96af (diff)
Fix a bug when connected to a device from the config file
-rw-r--r--rfcomm/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rfcomm/main.c b/rfcomm/main.c
index 3a7fe0a5..86331b9d 100644
--- a/rfcomm/main.c
+++ b/rfcomm/main.c
@@ -275,7 +275,7 @@ static void cmd_connect(int ctl, int dev, bdaddr_t *bdaddr, int argc, char **arg
bacpy(&raddr.rc_bdaddr, &rfcomm_opts[dev].bdaddr);
raddr.rc_channel = rfcomm_opts[dev].channel;
- if (bacmp(&req.dst, BDADDR_ANY) == 0) {
+ if (bacmp(&raddr.rc_bdaddr, BDADDR_ANY) == 0) {
fprintf(stderr, "Can't find a config entry for rfcomm%d\n", dev);
return;
}