diff options
author | Bart De Schuymer <bdschuym@pandora.be> | 2003-08-27 16:59:39 +0000 |
---|---|---|
committer | Bart De Schuymer <bdschuym@pandora.be> | 2003-08-27 16:59:39 +0000 |
commit | 245a0f5b7b329836058b9246d2ebd802f550b033 (patch) | |
tree | 20db15ea6515cc7224ffe7e3f4e4563c5f4c6710 | |
parent | 2eb5913d4a81597f4cbc173d0e595d97176fbd23 (diff) |
"out of memory" bug fix
-rw-r--r-- | userspace/ebtables2/communication.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |