From: Thomas Graf Date: Wed, 13 Jun 2012 11:24:19 +0000 (+0200) Subject: link: rtnl_link_get_kernel() should only wait for ACK if AUTO-ACK is on X-Git-Tag: libnl3_2_11~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4f933648622fff2b7fd6ec6c71724da4992c2544;p=libnl link: rtnl_link_get_kernel() should only wait for ACK if AUTO-ACK is on Signed-off-by: Thomas Graf --- diff --git a/lib/route/link.c b/lib/route/link.c index 0a17110..aea43b9 100644 --- a/lib/route/link.c +++ b/lib/route/link.c @@ -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; }