summaryrefslogtreecommitdiffstats
path: root/libiptc
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2005-01-03 03:48:40 +0000
committerRusty Russell <rusty@rustcorp.com.au>2005-01-03 03:48:40 +0000
commit3aef54dce4f9bbe0b466478fd33a1d3131efbbb8 (patch)
tree58c303308741dab836833dc15cade877a6bf6939 /libiptc
parent708f7b97a5a7455abf5c3c5a86bf6603c6c7a1c5 (diff)
Extension revision number support (if kernel supports the getsockopts).
Enhance MARK match with second revision. Committed in anticipation of the kernel patch being applied.
Diffstat (limited to 'libiptc')
-rw-r--r--libiptc/libiptc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libiptc/libiptc.c b/libiptc/libiptc.c
index 22b80a6b..ad0b57c4 100644
--- a/libiptc/libiptc.c
+++ b/libiptc/libiptc.c
@@ -1234,10 +1234,10 @@ iptcc_map_target(const TC_HANDLE_T handle,
}
/* Must be a module? If not, kernel will reject... */
- /* memset to all 0 for your memcmp convenience. */
+ /* memset to all 0 for your memcmp convenience: don't clear version */
memset(t->u.user.name + strlen(t->u.user.name),
0,
- FUNCTION_MAXNAMELEN - strlen(t->u.user.name));
+ FUNCTION_MAXNAMELEN - 1 - strlen(t->u.user.name));
r->type = IPTCC_R_MODULE;
set_changed(handle);
return 1;