diff options
author | Rusty Russell <rusty@linuxcare.com.au> | 2000-09-19 07:01:46 +0000 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2000-09-19 07:01:46 +0000 |
commit | 3c7a6c479f3eccd65a78dc103f33f4085e8e4703 (patch) | |
tree | 162203ce13dbf2c69cab5f5eb17ed9a46883dc5d | |
parent | c8d7d895b7552c703c17f630bfbe25d138a81963 (diff) |
Fix allocation (base new alloc on current size, not original size).
-rw-r--r-- | libiptc/libiptc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libiptc/libiptc.c b/libiptc/libiptc.c index 55edbc65..a0f12e6b 100644 --- a/libiptc/libiptc.c +++ b/libiptc/libiptc.c @@ -730,7 +730,7 @@ insert_rules(unsigned int num_rules, unsigned int rules_size, } newh = alloc_handle((*handle)->info.name, - (*handle)->info.size + rules_size, + (*handle)->entries.size + rules_size, (*handle)->info.num_entries + num_rules); if (!newh) return 0; |