From 8e96bee4703f792e8542c259cea2abf11bc0dfba 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 --- communication.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'communication.c') diff --git a/communication.c b/communication.c index d4b1c4d..4d02b05 100644 --- a/communication.c +++ b/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