From 245a0f5b7b329836058b9246d2ebd802f550b033 Mon Sep 17 00:00:00 2001 From: Bart De Schuymer Date: Wed, 27 Aug 2003 16:59:39 +0000 Subject: "out of memory" bug fix --- userspace/ebtables2/communication.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userspace/ebtables2/communication.c b/userspace/ebtables2/communication.c index d4b1c4d..4d02b05 100644 --- a/userspace/ebtables2/communication.c +++ b/userspace/ebtables2/communication.c @@ -623,9 +623,9 @@ static void retrieve_from_file(char *filename, struct ebt_replace *repl, if (repl->nentries) { counters = (struct ebt_counter *) malloc(repl->nentries * sizeof(struct ebt_counter)); + repl->counters = sparc_cast counters; if (!repl->counters) print_memory(); - repl->counters = sparc_cast counters; } else repl->counters = sparc_cast NULL; /* copy entries and counters */ -- cgit v1.2.3