nl_recv: return NLE_INVAL if socket address pointer is NULL
This commit is contained in:
parent
eb36066909
commit
220d8e141d
1 changed files with 1 additions and 1 deletions
2
lib/nl.c
2
lib/nl.c
|
@ -464,7 +464,7 @@ int nl_recv(struct nl_sock *sk, struct sockaddr_nl *nla,
|
|||
struct ucred* tmpcreds = NULL;
|
||||
int retval = 0;
|
||||
|
||||
if (!buf)
|
||||
if (!buf || !nla)
|
||||
return -NLE_INVAL;
|
||||
|
||||
if (sk->s_flags & NL_MSG_PEEK)
|
||||
|
|
Loading…
Add table
Reference in a new issue