From d14295005ed9e4757a7cca45f9ea6d640b428c7e Mon Sep 17 00:00:00 2001 From: Michael Janssen Date: Mon, 10 Nov 2014 16:10:56 -0800 Subject: [PATCH] shared/att: bugfix for BT_ATT_ALL_REQUESTS opcode can now be zero, since that is BT_ATT_ALL_REQUESTS --- src/shared/att.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/att.c b/src/shared/att.c index f043523fd..6e1e53872 100644 --- a/src/shared/att.c +++ b/src/shared/att.c @@ -1146,7 +1146,7 @@ unsigned int bt_att_register(struct bt_att *att, uint8_t opcode, { struct att_notify *notify; - if (!att || !opcode || !callback || !att->io) + if (!att || !callback || !att->io) return 0; notify = new0(struct att_notify, 1); -- 2.47.3