On 12/03/2013 07:18 AM, John Ferlan wrote:
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(a)redhat.com>
---
src/network/bridge_driver.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
ACK
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;
}
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library
http://libvirt.org