From 3aef54dce4f9bbe0b466478fd33a1d3131efbbb8 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 3 Jan 2005 03:48:40 +0000 Subject: Extension revision number support (if kernel supports the getsockopts). Enhance MARK match with second revision. Committed in anticipation of the kernel patch being applied. --- libiptc/libiptc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libiptc/libiptc.c') 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; -- cgit v1.2.3