summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}