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:
parent
49fe936b8e
commit
4f93364862
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue