[nft-sync PATCH] mnl: delete erroneous memory free

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



That memory free is erroneus.

In case the server is going to dump the internal ruleset, if it the ruleset
contains sets then we get a segfault.

Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@xxxxxxxxx>
---
 src/mnl.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/src/mnl.c b/src/mnl.c
index bd2227b..3bb3ade 100644
--- a/src/mnl.c
+++ b/src/mnl.c
@@ -341,7 +341,6 @@ struct nft_ruleset *mnl_ruleset_dump(struct mnl_socket *nf_sock)
 			}
 
 			nft_set_list_merge(complete_set_list, s);
-			nft_set_list_free(s);
 		}
 		o = nft_table_list_iter_next(it);
 	}

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux