mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
iptablesPrivateChainCreate: virHashNew cannot return NULL
Signed-off-by: Tim Wiederhake <twiederh@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
@@ -70,17 +70,12 @@ iptablesPrivateChainCreate(virFirewall *fw,
|
||||
void *opaque)
|
||||
{
|
||||
iptablesGlobalChainData *data = opaque;
|
||||
GHashTable *chains = NULL;
|
||||
GHashTable *links = NULL;
|
||||
GHashTable *chains = virHashNew(NULL);
|
||||
GHashTable *links = virHashNew(NULL);
|
||||
const char *const *tmp;
|
||||
int ret = -1;
|
||||
size_t i;
|
||||
|
||||
if (!(chains = virHashNew(NULL)))
|
||||
goto cleanup;
|
||||
if (!(links = virHashNew(NULL)))
|
||||
goto cleanup;
|
||||
|
||||
tmp = lines;
|
||||
while (tmp && *tmp) {
|
||||
if (STRPREFIX(*tmp, "-N ")) { /* eg "-N LIBVIRT_INP" */
|
||||
|
||||
Reference in New Issue
Block a user