link: rtnl_link_get_kernel() should only wait for ACK if AUTO-ACK is on

Signed-off-by: Thomas Graf <tgraf@suug.ch>
This commit is contained in:
Thomas Graf 2012-06-13 13:24:19 +02:00
parent 49fe936b8e
commit 4f93364862

View file

@ -1025,7 +1025,7 @@ int rtnl_link_get_kernel(struct nl_sock *sk, int ifindex, const char *name,
/* If an object has been returned, we also need to wait for the ACK */
if (err == 0 && obj)
nl_wait_for_ack(sk);
wait_for_ack(sk);
return 0;
}