diff --git a/daemon/src/sip/sipaccount.cpp b/daemon/src/sip/sipaccount.cpp index ea6fb2889799090f6e9048db1e7c0f9fcb6142c3..cfdcc9f3d45be14d1a010d3729c8fa36b4f6e5f6 100644 --- a/daemon/src/sip/sipaccount.cpp +++ b/daemon/src/sip/sipaccount.cpp @@ -1541,6 +1541,7 @@ SIPAccount::getSupportedCiphers() const RING_ERR("Could not determine cipher list on this system"); // filter-out 0 ciphers + availCiphers.reserve(cipherNum); std::copy_if(avail_ciphers.begin(), avail_ciphers.end(), availCiphers.begin(), [](pj_ssl_cipher& item){ return item > 0; });