diff options
Diffstat (limited to 'lib/nl.c')
-rw-r--r-- | lib/nl.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -427,6 +427,8 @@ int nl_recv(struct nl_sock *sk, struct sockaddr_nl *nla, }; struct cmsghdr *cmsg; + memset(nla, 0, sizeof(*nla)); + if (sk->s_flags & NL_MSG_PEEK) flags |= MSG_PEEK; |