summaryrefslogtreecommitdiffstats
path: root/src/method_null.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/method_null.c')
-rw-r--r--src/method_null.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/method_null.c b/src/method_null.c
index 75e74de..60e612d 100644
--- a/src/method_null.c
+++ b/src/method_null.c
@@ -33,8 +33,7 @@ static size_t null_max_packet_size(fastd_context *ctx) {
}
static void null_init(fastd_context *ctx, fastd_peer *peer) {
- fastd_buffer buffer = { .base = NULL, .len = 0, .free = NULL, .free_p = NULL };
- fastd_task_put_send(ctx, peer, buffer);
+ fastd_task_put_send(ctx, peer, fastd_buffer_alloc(0, 0, 0));
}
static void null_handle_recv(fastd_context *ctx, fastd_peer *peer, fastd_buffer buffer) {