summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2003-08-27 16:59:39 +0000
committerBart De Schuymer <bdschuym@pandora.be>2003-08-27 16:59:39 +0000
commit8e96bee4703f792e8542c259cea2abf11bc0dfba (patch)
tree43dbc13094e20ee7ad9b821868b0b78370debead
parent3a339f2f44bce4f464cb1b3b9f2b96fd8cb6f21f (diff)
"out of memory" bug fix
-rw-r--r--communication.c2
1 files changed, 1 insertions, 1 deletions
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 */