Updated phone number contact processing
@@ -1609,11 +1609,7 @@ static ACVP_RESULT query_vendor_contacts(ACVP_CTX *ctx,
ACVP_LOG_VERBOSE("Email Match");
phone_numbers = json_object_get_array(contact_obj, "phoneNumbers");
- if (phone_numbers == NULL) {
- ACVP_LOG_ERR("No phoneNumbers object");
- rv = ACVP_JSON_ERR;
- goto end;
- }
+ if (phone_numbers != NULL) {
rv = compare_phone_numbers(person->phone_numbers, phone_numbers, &equal);
if (ACVP_SUCCESS != rv) {
ACVP_LOG_ERR("Problem comparing person phone numbers");
@@ -1624,6 +1620,7 @@ static ACVP_RESULT query_vendor_contacts(ACVP_CTX *ctx,
continue;
}
ACVP_LOG_VERBOSE("Phone Match");
+ }
/*
* Found a match.
