cpp: Return null key if the signature had no key

* lang/cpp/src/verificationresult.cpp (Private): Add null key
to list when there is no key associated with the signature.

--
This fixes an out of bounds read when a verification did
not have a key.
This commit is contained in:
Andre Heinecke 2016-10-10 17:36:41 +02:00
parent f131a5e72b
commit 34e9dfee81

View File

@ -72,6 +72,8 @@ public:
// copy keys
if (scopy->key) {
keys.push_back(Key(scopy->key, true));
} else {
keys.push_back(Key());
}
// copy notations:
nota.push_back(std::vector<Nota>());