summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-08-11 20:43:21 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-08-11 20:43:21 +0000
commit2edfb968d931f6ec83964aadb5883dd330b168a2 (patch)
tree278972436720424e1c3136020db032a0970ddc01
parent9494c146cec1df466c2f331957748beeac8d745a (diff)
Fix resolving local bdaddr for incoming connections
-rw-r--r--audio/avdtp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/avdtp.c b/audio/avdtp.c
index bbb4314c..0c4a16cf 100644
--- a/audio/avdtp.c
+++ b/audio/avdtp.c
@@ -2097,7 +2097,7 @@ static gboolean avdtp_server_cb(GIOChannel *chan, GIOCondition cond, void *data)
debug("AVDTP: incoming connect from %s", address);
size = sizeof(struct sockaddr_l2);
- if (getsockname(srv_sk, (struct sockaddr *) &addr, &size) < 0) {
+ if (getsockname(cli_sk, (struct sockaddr *) &addr, &size) < 0) {
error("getsockname: %s (%d)", strerror(errno), errno);
close(cli_sk);
return TRUE;