b010f24 IFP: ListByName: Don't crash when no results are found

Authored and Committed by jhrozek 7 years ago
    IFP: ListByName: Don't crash when no results are found
    
    If no results were found using the List command, the results variable
    was undefined which resulted in a crash.
    
    Instead, only copy the results of the cache_req lookup returns EOK and
    we can presume that the results are valid.
    
    Reviewed-by: Pavel Březina <pbrezina@redhat.com>
    Reviewed-by: Sumit Bose <sbose@redhat.com>