]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
packet_id: Fix build with --disable-debug master
authorFrank Lichtenheld <frank@lichtenheld.com>
Mon, 30 Jun 2025 16:42:01 +0000 (18:42 +0200)
committerGert Doering <gert@greenie.muc.de>
Mon, 30 Jun 2025 17:00:53 +0000 (19:00 +0200)
Broken since commit
bc62a9a02cb7365a678bcd3f2faf537a420cc5a0
"Add methods to read/write packet ids for epoch data"

Change-Id: I3bed9c7aafee8e62ddae14c0d3e21cf4c146a37c
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20250630164207.10477-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg32013.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/packet_id.c

index c8dae322c70e0eb2554ad72ac18d4829059bb932..76a81c697100122eb7eb04781ec7c969585b9f51 100644 (file)
@@ -673,6 +673,8 @@ packet_id_debug_print(int msglevel,
     gc_free(&gc);
 }
 
+#endif /* ifdef ENABLE_DEBUG */
+
 uint16_t
 packet_id_read_epoch(struct packet_id_net *pin, struct buffer *buf)
 {
@@ -711,6 +713,3 @@ packet_id_write_epoch(struct packet_id_send *p, uint16_t epoch, struct buffer *b
 
     return buf_write(buf, &net_id, sizeof(net_id));
 }
-
-
-#endif /* ifdef ENABLE_DEBUG */