summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/fastd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fastd.c b/src/fastd.c
index b2cc196..ba8c6e8 100644
--- a/src/fastd.c
+++ b/src/fastd.c
@@ -296,8 +296,10 @@ static void handle_tasks(fastd_context *ctx) {
exit_bug(ctx, "unsupported address family");
}
+ uint8_t packet_type = task->send.packet_type;
+
struct iovec iov[2] = {
- { .iov_base = &task->send.packet_type, .iov_len = 1 },
+ { .iov_base = &packet_type, .iov_len = 1 },
{ .iov_base = task->send.buffer.data, .iov_len = task->send.buffer.len }
};