diff options
author | Michele Baldessari <michele@acksyn.org> | 2012-10-27 18:38:21 (GMT) |
---|---|---|
committer | Thomas Graf <tgraf@redhat.com> | 2012-10-29 17:16:58 (GMT) |
commit | 3750e2ac31c15c85069ab3a087c4353f8bc6e80a (patch) | |
tree | 4d635104bd8765cb616229a4ddb6ff191886d997 /lib | |
parent | 16e54c4e6e767e5c923e7d5849a285b38d3345d0 (diff) | |
download | libnl-3750e2ac31c15c85069ab3a087c4353f8bc6e80a.zip libnl-3750e2ac31c15c85069ab3a087c4353f8bc6e80a.tar.gz libnl-3750e2ac31c15c85069ab3a087c4353f8bc6e80a.tar.bz2 |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/route/neightbl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/route/neightbl.c b/lib/route/neightbl.c index 7725482..1efa5cb 100644 --- a/lib/route/neightbl.c +++ b/lib/route/neightbl.c @@ -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; } |