summaryrefslogtreecommitdiff
path: root/node/CertificateOfMembership.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2016-08-04 10:18:33 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2016-08-04 10:18:33 -0700
commit5cf410490e677f524eda5fd5c790e37f81ba7753 (patch)
tree975e41374325b0b47bca0b23be23f697819083a8 /node/CertificateOfMembership.cpp
parent404a0bbddd90ef2fbd624a0089076aac7e9184b4 (diff)
downloadinfinitytier-5cf410490e677f524eda5fd5c790e37f81ba7753.tar.gz
infinitytier-5cf410490e677f524eda5fd5c790e37f81ba7753.zip
.
Diffstat (limited to 'node/CertificateOfMembership.cpp')
-rw-r--r--node/CertificateOfMembership.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/node/CertificateOfMembership.cpp b/node/CertificateOfMembership.cpp
index 7b99f2c7..0c36aa45 100644
--- a/node/CertificateOfMembership.cpp
+++ b/node/CertificateOfMembership.cpp
@@ -155,6 +155,9 @@ bool CertificateOfMembership::agreesWith(const CertificateOfMembership &other) c
unsigned int myidx = 0;
unsigned int otheridx = 0;
+ if ((_qualifierCount == 0)||(other._qualifierCount == 0))
+ return false;
+
while (myidx < _qualifierCount) {
// Fail if we're at the end of other, since this means the field is
// missing.