[libvirt] [PATCH] util: Fix bug which will cause libvirtd crash