From ce4f1f2f33d08b870b0d433380c021ed887ea459 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Fri, 23 Apr 2021 17:55:03 +0200 Subject: [PATCH] Ensure aux field is initialized in RST packets. The aux field was left uninitialized. This didn't cause any harm, but was caught by valgrind. --- src/utcp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utcp.c b/src/utcp.c index e3070b89..11a9eead 100644 --- a/src/utcp.c +++ b/src/utcp.c @@ -2109,6 +2109,7 @@ static bool reset_connection(struct utcp_connection *c) { hdr.ack = c->rcv.nxt; hdr.wnd = 0; hdr.ctl = RST; + hdr.aux = 0; print_packet(c, "send", &hdr, sizeof(hdr)); c->utcp->send(c->utcp, &hdr, sizeof(hdr)); -- 2.39.2