diff options
author | Maria Matejka <mq@ucw.cz> | 2022-04-10 18:55:15 +0200 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2022-05-04 15:37:41 +0200 |
commit | f2f3163f6c3fba7f9ef03640d7b2f6323873d2cc (patch) | |
tree | d0f3129250e783d347c63f649b02880abf569c1d /filter/f-inst.c | |
parent | de86040b2cf4ec9bfbb64f0e208a19d4d7e51adc (diff) |
Filters always allocate from tmp_linpool
Diffstat (limited to 'filter/f-inst.c')
-rw-r--r-- | filter/f-inst.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/filter/f-inst.c b/filter/f-inst.c index 7b3db1c7..3a2554fd 100644 --- a/filter/f-inst.c +++ b/filter/f-inst.c @@ -696,7 +696,7 @@ DYNAMIC_ATTR; ARG_TYPE(1, da.type); { - struct ea_list *l = lp_alloc(fs->pool, sizeof(struct ea_list) + sizeof(eattr)); + struct ea_list *l = tmp_alloc(sizeof(struct ea_list) + sizeof(eattr)); l->next = NULL; l->flags = EALF_SORTED; @@ -718,7 +718,7 @@ break; case T_IP: - l->attrs[0].u.ptr = lp_store_adata(fs->pool, &v1.val.ip, sizeof(ip_addr)); + l->attrs[0].u.ptr = tmp_store_adata(&v1.val.ip, sizeof(ip_addr)); break; default: @@ -739,7 +739,7 @@ ACCESS_EATTRS; f_rta_cow(fs); - ea_unset_attr(fs->eattrs, fs->pool, 1, da.ea_code); + ea_unset_attr(fs->eattrs, tmp_linpool, 1, da.ea_code); } INST(FI_LENGTH, 1, 1) { /* Get length of */ |