def check_ip_context(ip, ip_context):
    """
    Check for matching ip_context records
    """
    matches = []

    for entry in ip_context:
        if entry["ip"] == ip:
            matches.append(entry)

    return matches