summaryrefslogtreecommitdiffstats
path: root/lib/route
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2014-06-10 16:15:52 (GMT)
committerThomas Haller <thaller@redhat.com>2014-06-10 19:45:52 (GMT)
commit3d5e4883be79b70cc387d0b1c6bf05ff19fae8cc (patch)
tree0d23d000a91b37fd7be81de6750cc65a9202e7d1 /lib/route
parent90cfeeecac148ca58b066a9c5384cba80ebc3cbb (diff)
downloadlibnl-3d5e4883be79b70cc387d0b1c6bf05ff19fae8cc.zip
libnl-3d5e4883be79b70cc387d0b1c6bf05ff19fae8cc.tar.gz
libnl-3d5e4883be79b70cc387d0b1c6bf05ff19fae8cc.tar.bz2
route/pktloc: read_pktlocs() always returned success status
Error found by coverity. Acked-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'lib/route')
-rw-r--r--lib/route/pktloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/route/pktloc.c b/lib/route/pktloc.c
index 5bb841c..27d63be 100644
--- a/lib/route/pktloc.c
+++ b/lib/route/pktloc.c
@@ -144,7 +144,7 @@ errout_close:
errout:
free(path);
- return 0;
+ return err;
}
/** @endcond */