server: Lookup user only once.
[paraslash.git] / amp_filter.c
index dddc0a85c3c11f29294074c9b6d565729dfc6e98..b0f3687212a1e1a4f4106bba8356bfe84b934d87 100644 (file)
@@ -73,7 +73,7 @@ static int amp_post_select(__a_unused struct sched *s, struct task *t)
        bool inplace = btr_inplace_ok(btrn);
 
        if (pad->amp == 0) { /* no amplification */
-               btr_splice_out_node(btrn);
+               btr_splice_out_node(&fn->btrn);
                return -E_AMP_ZERO_AMP;
        }
 next_buffer: