]> git.ipfire.org Git - thirdparty/xtables-addons.git/commitdiff
pknock: improve sizeof(struct ipt_pknock) by using "even" field sizes
authorJan Engelhardt <jengelh@medozas.de>
Tue, 29 Sep 2009 13:17:26 +0000 (15:17 +0200)
committerJan Engelhardt <jengelh@medozas.de>
Tue, 29 Sep 2009 17:36:14 +0000 (19:36 +0200)
The field sizes were 33, which makes for lots of padding holes.

extensions/xt_pknock.h

index 57f036a58b8678230fde9766d5b136d69f326b9c..e5051d35337643ea9c3fe2e251bbf327463bae1c 100644 (file)
@@ -22,8 +22,8 @@
 #define IPT_PKNOCK_CLOSESECRET 0x40
 
 #define IPT_PKNOCK_MAX_PORTS           15
-#define IPT_PKNOCK_MAX_BUF_LEN         32
-#define IPT_PKNOCK_MAX_PASSWD_LEN      32
+#define IPT_PKNOCK_MAX_BUF_LEN         31
+#define IPT_PKNOCK_MAX_PASSWD_LEN      31
 
 #define DEBUG 1