Skip to content
Snippets Groups Projects
Commit d6dcc987 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

misc: avoid crash if no certificate added for device

Using foundAccountDevice with a dht::PkId, can add known devices
without certificates. Iterating over knownDevices_ without checking
any certificate will lead to a segfault.
This will not happen under normal circumstances, because foundAccountDevice
only uses certificates, except for testing purpose

Change-Id: I9bf6682d7d6539c0f905e80995333db0d948c5af
parent dd83e5f7
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment