[libvirt] [PATCH] don't test "res == NULL" after we've already dereferenced it