diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2015-05-29 11:53:26 +0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2015-06-05 17:25:46 +0300 |
commit | e11bfba10cc15cf74f8a657fad018aece4a5bde9 (patch) | |
tree | 636fb0650e6589611a1a91f29069a64a62435361 | |
parent | 2d3522ece10f3503e45c03b45b0d015f456a9a52 (diff) | |
download | bluez-e11bfba10cc15cf74f8a657fad018aece4a5bde9.tar.gz |
shared/att: Fix boolean check in handle_notify()
ext_signed is boolean and shall be checked with logical op.
-rw-r--r-- | src/shared/att.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/att.c b/src/shared/att.c index 053aa47a4..f9a581703 100644 --- a/src/shared/att.c +++ b/src/shared/att.c @@ -733,7 +733,7 @@ static void handle_notify(struct bt_att *att, uint8_t opcode, uint8_t *pdu, const struct queue_entry *entry; bool found; - if (opcode & ATT_OP_SIGNED_MASK & !att->ext_signed) { + if ((opcode & ATT_OP_SIGNED_MASK) && !att->ext_signed) { if (!handle_signed(att, opcode, pdu, pdu_len)) return; pdu_len -= BT_ATT_SIGNATURE_LEN; |