diff --git a/src/libvirt.c b/src/libvirt.c index cc5b4c5e93..138dd31fe1 100644 --- a/src/libvirt.c +++ b/src/libvirt.c @@ -1660,8 +1660,9 @@ virConnectGetLibVersion(virConnectPtr conn, unsigned long *libVer) return ret; } - *libVer = LIBVIR_VERSION_NUMBER; - ret = 0; + *libVer = LIBVIR_VERSION_NUMBER; + return 0; + error: virDispatchError(conn); return ret;