]> granicus.if.org Git - libnl/commitdiff
link: rtnl_link_get_kernel() should only wait for ACK if AUTO-ACK is on
authorThomas Graf <tgraf@redhat.com>
Wed, 13 Jun 2012 11:24:19 +0000 (13:24 +0200)
committerThomas Graf <tgraf@redhat.com>
Wed, 13 Jun 2012 11:24:19 +0000 (13:24 +0200)
Signed-off-by: Thomas Graf <tgraf@suug.ch>
lib/route/link.c

index 0a1711086efc5fde237f5fa68229c2dadac4596f..aea43b9852ec9eebbc6d0d2921dda1bfdcd0f598 100644 (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;
 }