libnl/lib
roopa ded20487fd link: Fix rtnl_link_af_data_compare return value
This patch fixes a bug where because of the af_ops check
being first in the function, we were returning ~0 if af_ops
was null even if both objects really did not have af_data
and we should be returning 0.

Its better to have the af_data present check before anything else.

So, Rearranged some of the code in rtnl_link_af_data_compare.
Changes include:
	- Do the attribute present check before anything else
	- If ao_compare op not present, return ~0

Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Reviewed-by: Nolan Leake <nolan@cumulusnetworks.com>
Reviewed-by: Shrijeet Mukherjee <shm@cumulusnetworks.com>
Reviewed-by: Wilson Kok <wkok@cumulusnetworks.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2013-02-24 17:11:36 +01:00
..
cli Support plug qdisc - queue traffic until explicit release 2012-02-14 12:02:04 +01:00
fib_lookup Move private header files to <netlink-private/*> 2013-01-24 13:51:24 +01:00
genl Move private header files to <netlink-private/*> 2013-01-24 13:51:24 +01:00
netfilter netfilter: correct error in construction of NAT tuple 2013-01-29 15:10:01 -08:00
route link: Fix rtnl_link_af_data_compare return value 2013-02-24 17:11:36 +01:00
.gitignore Added lex.yy.c to .gitignore 2012-08-30 03:19:04 +06:00
addr.c Fix mask calculation in nl_addr_cmp_prefix() 2013-01-31 10:59:10 +01:00
attr.c attr: Provide nla_is_nested() function 2013-02-05 22:31:31 +01:00
cache.c Move private header files to <netlink-private/*> 2013-01-24 13:51:24 +01:00
cache_mngr.c Move private header files to <netlink-private/*> 2013-01-24 13:51:24 +01:00
cache_mngt.c Move private header files to <netlink-private/*> 2013-01-24 13:51:24 +01:00
data.c Move private header files to <netlink-private/*> 2013-01-24 13:51:24 +01:00
error.c Move private header files to <netlink-private/*> 2013-01-24 13:51:24 +01:00
handlers.c Move private header files to <netlink-private/*> 2013-01-24 13:51:24 +01:00
hash.c Hash: Properly prefix hash functions 2012-11-10 10:22:26 +01:00
hashtable.c Move private header files to <netlink-private/*> 2013-01-24 13:51:24 +01:00
Makefile.am link: basic socket-CAN support 2012-11-29 22:17:58 +01:00
msg.c Move private header files to <netlink-private/*> 2013-01-24 13:51:24 +01:00
nl.c Move private header files to <netlink-private/*> 2013-01-24 13:51:24 +01:00
object.c Move private header files to <netlink-private/*> 2013-01-24 13:51:24 +01:00
socket.c Move private header files to <netlink-private/*> 2013-01-24 13:51:24 +01:00
utils.c Move private header files to <netlink-private/*> 2013-01-24 13:51:24 +01:00
version.c Run-time version information is now available 2012-08-30 03:19:04 +06:00