mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
virNWFilterLearnInit: virHashNew
cannot return NULL
Signed-off-by: Tim Wiederhake <twiederh@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
4d9c5524b4
commit
c7560d0141
@ -774,16 +774,8 @@ virNWFilterLearnInit(void)
|
||||
|
||||
VIR_DEBUG("Initializing IP address learning");
|
||||
threadsTerminate = false;
|
||||
|
||||
pendingLearnReq = virHashNew(freeLearnReqEntry);
|
||||
if (!pendingLearnReq)
|
||||
return -1;
|
||||
|
||||
ifaceLockMap = virHashNew(g_free);
|
||||
if (!ifaceLockMap) {
|
||||
virNWFilterLearnShutdown();
|
||||
return -1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user