From: Nicolas PLANEL Date: Tue, 26 Aug 2014 15:34:40 +0000 (-0400) Subject: xfrm: fix xfrm_sa_msg_parser() to return the value from the callback X-Git-Tag: libnl3_2_26rc1~40^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06140c3ec9f0ab952fb42f112be7143d69688984;p=thirdparty%2Flibnl.git xfrm: fix xfrm_sa_msg_parser() to return the value from the callback Signed-off-by: Thomas Haller --- diff --git a/lib/xfrm/sa.c b/lib/xfrm/sa.c index 9b5ea9d..693eee4 100644 --- a/lib/xfrm/sa.c +++ b/lib/xfrm/sa.c @@ -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; } /**