mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 11:31:16 +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");
|
VIR_DEBUG("Initializing IP address learning");
|
||||||
threadsTerminate = false;
|
threadsTerminate = false;
|
||||||
|
|
||||||
pendingLearnReq = virHashNew(freeLearnReqEntry);
|
pendingLearnReq = virHashNew(freeLearnReqEntry);
|
||||||
if (!pendingLearnReq)
|
|
||||||
return -1;
|
|
||||||
|
|
||||||
ifaceLockMap = virHashNew(g_free);
|
ifaceLockMap = virHashNew(g_free);
|
||||||
if (!ifaceLockMap) {
|
|
||||||
virNWFilterLearnShutdown();
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user