[libvirt] [PATCH 06/24] maint: reset error on entrance to public API