Commit 310629ee authored by Adrien Béraud's avatar Adrien Béraud Committed by Guillaume Roguez

sipaccount: fix vector size in getSupportedCiphers()

was broken since commit ac3bf29a

Refs #66135

Change-Id: Icbfe09ce37cbd96643cd75bbb72a6cec60a26586
parent 7d5c2e63
......@@ -1542,14 +1542,13 @@ SIPAccount::getSupportedCiphers() const
CipherArray avail_ciphers(cipherNum);
if (pj_ssl_cipher_get_availables(&avail_ciphers.front(), &cipherNum) != PJ_SUCCESS)
RING_ERR("Could not determine cipher list on this system");
// filter-out 0 ciphers
std::copy_if(avail_ciphers.begin(), avail_ciphers.end(),
[](pj_ssl_cipher& item){ return item > 0; });
for (const auto &item : avail_ciphers) {
if (item > 0) // 0 doesn't have a name
return availCiphers;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment