Set err and free ntbl when leaving neightbl_msg_parser
Make sure we leave neightbl_msg_parser() by setting the proper err variable and freeing ntbl
This commit is contained in:
parent
16e54c4e6e
commit
3750e2ac31
1 changed files with 1 additions and 1 deletions
|
@ -143,7 +143,7 @@ static int neightbl_msg_parser(struct nl_cache_ops *ops,
|
|||
ntbl->nt_family = rtmsg->rtgen_family;
|
||||
|
||||
if (tb[NDTA_NAME] == NULL) {
|
||||
return -NLE_MISSING_ATTR;
|
||||
err = -NLE_MISSING_ATTR;
|
||||
goto errout;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue