Skip to content
Snippets Groups Projects
Commit 99cd560e authored by Guillaume Roguez's avatar Guillaume Roguez Committed by gerrit2
Browse files

RingAccount: fix uninitialized class members

Set true as default value to members:
allowPeersFromHistory_
allowPeersFromContact_
allowPeersFromTrusted_

Coverity CID # 1369576

Change-Id: I38499608ee35692e96c511f08d261eea8ad9b72b
Tuleap: #909
parent 1403a9bb
Branches
Tags
No related merge requests found
...@@ -389,9 +389,10 @@ class RingAccount : public SIPAccountBase { ...@@ -389,9 +389,10 @@ class RingAccount : public SIPAccountBase {
std::shared_future<tls::DhParams> dhParams_; std::shared_future<tls::DhParams> dhParams_;
std::mutex dhParamsMtx_; std::mutex dhParamsMtx_;
std::condition_variable dhParamsCv_; std::condition_variable dhParamsCv_;
bool allowPeersFromHistory_;
bool allowPeersFromContact_; bool allowPeersFromHistory_ {true};
bool allowPeersFromTrusted_; bool allowPeersFromContact_ {true};
bool allowPeersFromTrusted_ {true};
/** /**
* Optional: "received" parameter from VIA header * Optional: "received" parameter from VIA header
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment