diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libnfnetlink.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libnfnetlink.c b/src/libnfnetlink.c index 4b2bcd0..398b7d7 100644 --- a/src/libnfnetlink.c +++ b/src/libnfnetlink.c @@ -809,6 +809,7 @@ int nfnl_addattr_l(struct nlmsghdr *n, int maxlen, int type, const void *data, nfa->nfa_type = type; nfa->nfa_len = len; memcpy(NFA_DATA(nfa), data, alen); + memset((uint8_t *)nfa + nfa->nfa_len, 0, NFA_ALIGN(alen) - alen); n->nlmsg_len = (NLMSG_ALIGN(n->nlmsg_len) + NFA_ALIGN(len)); return 0; } |