summaryrefslogtreecommitdiff
path: root/src/irmd/main.c
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2025-07-23 19:15:24 +0200
committerSander Vrijders <sander@ouroboros.rocks>2025-07-25 16:24:46 +0200
commit408c977f7be09db3b8aa98224989aec731eb0b5a (patch)
treeec8781aae11e7b2ec459f541d36252020c2eff3a /src/irmd/main.c
parent1856a585ae4290e666314ee7907dc8cbbb08fe2d (diff)
downloadouroboros-408c977f7be09db3b8aa98224989aec731eb0b5a.tar.gz
ouroboros-408c977f7be09db3b8aa98224989aec731eb0b5a.zip
lib: Swap len and data in the buffer_tbe
This is how the ProtoBufCBinary data type is defined, so it will allow easier conversion until we get rid of it. But it makes sense, as the size_t will always be aligned. Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks> Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/irmd/main.c')
-rw-r--r--src/irmd/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irmd/main.c b/src/irmd/main.c
index 3a1a7225..e0be8a01 100644
--- a/src/irmd/main.c
+++ b/src/irmd/main.c
@@ -920,7 +920,7 @@ static int flow_join(struct flow_info * flow,
struct ipcp_info ipcp;
struct layer_info layer;
buffer_t hash;
- buffer_t pbuf = {NULL, 0}; /* nothing to piggyback */
+ buffer_t pbuf = {0, NULL}; /* nothing to piggyback */
int err;
log_info("Allocating flow for %d to %s.", flow->n_pid, dst);