]> git.ipfire.org Git - thirdparty/libnl.git/commitdiff
xfrm: fix xfrm_sa_msg_parser() to return the value from the callback
authorNicolas PLANEL <nicolas.planel@enovance.com>
Tue, 26 Aug 2014 15:34:40 +0000 (11:34 -0400)
committerThomas Haller <thaller@redhat.com>
Wed, 27 Aug 2014 11:00:46 +0000 (13:00 +0200)
Signed-off-by: Thomas Haller <thaller@redhat.com>
lib/xfrm/sa.c

index 9b5ea9d242e2ae062c8c6c51319b1bd92fcc2685..693eee47d5a9a4de087a1ae2bb5933fefb97f290 100644 (file)
@@ -990,7 +990,7 @@ static int xfrm_sa_msg_parser(struct nl_cache_ops *ops, struct sockaddr_nl *who,
        err = pp->pp_cb((struct nl_object *) sa, pp);
 
        xfrmnl_sa_put(sa);
-       return 0;
+       return err;
 }
 
 /**