dect
/
libnl
Archived
13
0
Fork 0

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:
Michele Baldessari 2012-10-27 20:38:21 +02:00 committed by Thomas Graf
parent 16e54c4e6e
commit 3750e2ac31
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}