The last parameter to the memcmp was incorrectly the result of the comparison rather than the sizeof()'s value. --- src/shared/asha.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/asha.c b/src/shared/asha.c index 3e1673488..69906fcc5 100644 --- a/src/shared/asha.c +++ b/src/shared/asha.c @@ -348,7 +348,7 @@ static void check_probe_done(struct bt_asha *asha) /* Once we have ROPs & PSM, we should be good to go */ if (asha->psm == 0 || memcmp(asha->hisyncid, zeroes, - sizeof(zeroes) == 0)) + sizeof(zeroes)) == 0) return; if (asha->attach_cb) { -- 2.49.0