Fixes coverity 369570

master
AlaiaL 4 years ago committed by Andre Puschmann
parent 6332490cae
commit 0535473895

@ -57,8 +57,8 @@ public:
pdcp_entity_base(pdcp_entity_base&&) = default; pdcp_entity_base(pdcp_entity_base&&) = default;
virtual ~pdcp_entity_base(); virtual ~pdcp_entity_base();
virtual bool configure(const pdcp_config_t& cnfg_) = 0; virtual bool configure(const pdcp_config_t& cnfg_) = 0;
virtual void reset() = 0; virtual void reset() = 0;
virtual void reestablish() = 0; virtual void reestablish() = 0;
bool is_active() { return active; } bool is_active() { return active; }
bool is_srb() { return cfg.rb_type == PDCP_RB_IS_SRB; } bool is_srb() { return cfg.rb_type == PDCP_RB_IS_SRB; }
@ -106,7 +106,7 @@ public:
} }
} }
void config_security(as_security_config_t sec_cfg_); void config_security(const as_security_config_t& sec_cfg_);
// GW/SDAP/RRC interface // GW/SDAP/RRC interface
virtual void write_sdu(unique_byte_buffer_t sdu, int sn = -1) = 0; virtual void write_sdu(unique_byte_buffer_t sdu, int sn = -1) = 0;

@ -23,7 +23,7 @@ pdcp_entity_base::pdcp_entity_base(task_sched_handle task_sched_, srslog::basic_
pdcp_entity_base::~pdcp_entity_base() {} pdcp_entity_base::~pdcp_entity_base() {}
void pdcp_entity_base::config_security(as_security_config_t sec_cfg_) void pdcp_entity_base::config_security(const as_security_config_t& sec_cfg_)
{ {
sec_cfg = sec_cfg_; sec_cfg = sec_cfg_;

Loading…
Cancel
Save