summaryrefslogtreecommitdiffstats
path: root/src/protocol_null.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocol_null.c')
-rw-r--r--src/protocol_null.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/protocol_null.c b/src/protocol_null.c
index b22e03e..24cb58b 100644
--- a/src/protocol_null.c
+++ b/src/protocol_null.c
@@ -50,7 +50,8 @@ static size_t protocol_min_head_space(fastd_context *ctx) {
static void protocol_init_peer(fastd_context *ctx, fastd_peer *peer) {
pr_info(ctx, "Connection with %P established.", peer);
- fastd_task_put_send(ctx, peer, fastd_buffer_alloc(0, 0, 0));
+ if (!fastd_peer_is_temporary(peer))
+ fastd_task_put_send(ctx, peer, fastd_buffer_alloc(0, 0, 0));
}
static void protocol_handle_recv(fastd_context *ctx, fastd_peer *peer, fastd_buffer buffer) {