diff options
author | Maria Matejka <mq@ucw.cz> | 2022-04-10 14:11:46 +0200 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2022-05-04 15:37:41 +0200 |
commit | de86040b2cf4ec9bfbb64f0e208a19d4d7e51adc (patch) | |
tree | 930de20f9c75a4a2e4f9bb281dd1499888ae8b6a /filter | |
parent | 0b871c170472202770691af8995766ee57920fdc (diff) |
Attribute list normalization cleanup
Diffstat (limited to 'filter')
-rw-r--r-- | filter/f-inst.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/filter/f-inst.c b/filter/f-inst.c index e0bad833..7b3db1c7 100644 --- a/filter/f-inst.c +++ b/filter/f-inst.c @@ -717,12 +717,8 @@ runtime( "Setting opaque attribute is not allowed" ); break; - case T_IP:; - int len = sizeof(ip_addr); - struct adata *ad = lp_alloc(fs->pool, sizeof(struct adata) + len); - ad->length = len; - (* (ip_addr *) ad->data) = v1.val.ip; - l->attrs[0].u.ptr = ad; + case T_IP: + l->attrs[0].u.ptr = lp_store_adata(fs->pool, &v1.val.ip, sizeof(ip_addr)); break; default: |