diff --git a/controller/src/beerocks/master/db/db.h b/controller/src/beerocks/master/db/db.h index 3f068ef2fc..8ca77c384a 100644 --- a/controller/src/beerocks/master/db/db.h +++ b/controller/src/beerocks/master/db/db.h @@ -503,8 +503,8 @@ class db { // // certification // - std::shared_ptr &get_certification_tx_buffer() { return certification_tx_buffer; }; - std::shared_ptr &allocate_certification_tx_buffer() + std::shared_ptr get_certification_tx_buffer() { return certification_tx_buffer; }; + std::shared_ptr allocate_certification_tx_buffer() { return (certification_tx_buffer = std::shared_ptr(new uint8_t[beerocks::message::MESSAGE_BUFFER_LENGTH],