From 5cf410490e677f524eda5fd5c790e37f81ba7753 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Thu, 4 Aug 2016 10:18:33 -0700 Subject: . --- node/CertificateOfMembership.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'node/CertificateOfMembership.cpp') 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. -- cgit v1.2.3