summaryrefslogtreecommitdiff
path: root/src/ndef.c
diff options
context:
space:
mode:
authorOlivier Guiter <olivier.guiter@linux.intel.com>2013-02-11 15:33:52 +0100
committerSamuel Ortiz <sameo@linux.intel.com>2013-02-12 20:12:07 +0100
commitf788c7e9cf861b9316b0f152252f64368492ffa4 (patch)
tree013c8b78d46de37a6a40c8a86e535e9d49d57081 /src/ndef.c
parentc23d40794742574f0bc632d8c82b7dc5487a7455 (diff)
downloadneard-f788c7e9cf861b9316b0f152252f64368492ffa4.tar.gz
neard-f788c7e9cf861b9316b0f152252f64368492ffa4.tar.bz2
neard-f788c7e9cf861b9316b0f152252f64368492ffa4.zip
ndef: Do not build a reply to handover select messages
Handover select frames must not be replied to. This fixes the following bt-handover error: "ERROR:dbus.connection:Exception in handler for D-Bus signal"
Diffstat (limited to 'src/ndef.c')
-rw-r--r--src/ndef.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ndef.c b/src/ndef.c
index 48c1282..03604bc 100644
--- a/src/ndef.c
+++ b/src/ndef.c
@@ -1427,7 +1427,7 @@ parse_mime_type(struct near_ndef_record *record, uint8_t *ndef_data,
} else {
err = __near_bluetooth_parse_oob_record(&data,
&mime->handover.properties, action);
- if (err == 0 && reply != NULL) {
+ if (err == 0 && reply != NULL && action == FALSE) {
*reply = near_ndef_prepare_handover_record("Hs",
record, NEAR_CARRIER_BLUETOOTH, NULL);
if (*reply == NULL)