Skip to content
Snippets Groups Projects
Commit d9dfb64c authored by Guillaume Roguez's avatar Guillaume Roguez Committed by Emmanuel Lepage Vallée
Browse files

sipaccount: fix segfault in getSupportedCiphers()

was broken since commit ac3bf29a

Refs #66135

Change-Id: Ic18fefb97c43f26f71b8c59a5d60cda8f3f967a3
parent 6932060a
No related branches found
No related tags found
No related merge requests found
...@@ -1541,6 +1541,7 @@ SIPAccount::getSupportedCiphers() const ...@@ -1541,6 +1541,7 @@ SIPAccount::getSupportedCiphers() const
RING_ERR("Could not determine cipher list on this system"); RING_ERR("Could not determine cipher list on this system");
// filter-out 0 ciphers // filter-out 0 ciphers
availCiphers.reserve(cipherNum);
std::copy_if(avail_ciphers.begin(), avail_ciphers.end(), std::copy_if(avail_ciphers.begin(), avail_ciphers.end(),
availCiphers.begin(), availCiphers.begin(),
[](pj_ssl_cipher& item){ return item > 0; }); [](pj_ssl_cipher& item){ return item > 0; });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment