diff options
Diffstat (limited to 'src/expr/match.c')
-rw-r--r-- | src/expr/match.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expr/match.c b/src/expr/match.c index 85dd79c..2b3321d 100644 --- a/src/expr/match.c +++ b/src/expr/match.c @@ -46,7 +46,7 @@ nftnl_expr_match_set(struct nftnl_expr *e, uint16_t type, (const char *)data); break; case NFTNL_EXPR_MT_REV: - mt->rev = *((uint32_t *)data); + memcpy(&mt->rev, data, sizeof(mt->rev)); break; case NFTNL_EXPR_MT_INFO: if (e->flags & (1 << NFTNL_EXPR_MT_INFO)) |