From 94e21677080dded40bbe6a77b8d9e2d9eeaa06ee Mon Sep 17 00:00:00 2001 From: Jesper Jensen Date: Mon, 23 Jun 2025 17:28:16 +0200 Subject: Print the invalid dest_len --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 7dcac87..c4a0e4a 100644 --- a/src/main.c +++ b/src/main.c @@ -122,7 +122,7 @@ void flush_messages(int sfd, struct message* cursor, const struct message* const //now reply the client with the same data int rc = sendto(sfd, cursor->payload, cursor->payload_len, 0, (const struct sockaddr*)&cursor->dest, cursor->dest_len); if (rc < 0) { - fatal("Failed to send message %m"); + fatal("Failed to send message %d %m: %d", errno, cursor->dest_len); } prom_counter_add(bytesSent, cursor->payload_len, NULL); } -- cgit v1.2.3