The networkRegister() didn't check the return status of the virRegisterNetworkDriver() call like other callers, so just check and handle here as well. Signed-off-by: John Ferlan <jferlan@xxxxxxxxxx> --- src/network/bridge_driver.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/network/bridge_driver.c b/src/network/bridge_driver.c index 1e4cc70..80c5acb 100644 --- a/src/network/bridge_driver.c +++ b/src/network/bridge_driver.c @@ -3046,7 +3046,8 @@ static virStateDriver networkStateDriver = { }; int networkRegister(void) { - virRegisterNetworkDriver(&networkDriver); + if (virRegisterNetworkDriver(&networkDriver) < 0) + return -1; virRegisterStateDriver(&networkStateDriver); return 0; } -- 1.8.3.1 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list