diff options
Diffstat (limited to 'libiptc/libip6tc.c')
-rw-r--r-- | libiptc/libip6tc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libiptc/libip6tc.c b/libiptc/libip6tc.c index 59668418..27fe4c4e 100644 --- a/libiptc/libip6tc.c +++ b/libiptc/libip6tc.c @@ -185,7 +185,8 @@ dump_entry(struct ip6t_entry *e, struct ip6tc_handle *const handle) t = ip6t_get_target(e); printf("Target name: `%s' [%u]\n", t->u.user.name, t->u.target_size); if (strcmp(t->u.user.name, IP6T_STANDARD_TARGET) == 0) { - int pos = *(int *)t->data; + const unsigned char *data = t->data; + int pos = *(const int *)data; if (pos < 0) printf("verdict=%s\n", pos == -NF_ACCEPT-1 ? "NF_ACCEPT" |