diff --git a/subsys/bluetooth/host/att.c b/subsys/bluetooth/host/att.c index 554e1bcb3d7..b2aa924e722 100644 --- a/subsys/bluetooth/host/att.c +++ b/subsys/bluetooth/host/att.c @@ -2268,9 +2268,7 @@ struct bt_att_req *bt_att_req_alloc(s32_t timeout) BT_DBG("req %p", req); - req->func = NULL; - req->destroy = NULL; - req->user_data = NULL; + memset(req, 0, sizeof(*req)); return req; }