summaryrefslogtreecommitdiffstats
path: root/lib/nl.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/nl.c')
-rw-r--r--lib/nl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/nl.c b/lib/nl.c
index 737ebaa..c93b6a5 100644
--- a/lib/nl.c
+++ b/lib/nl.c
@@ -137,11 +137,11 @@ int nl_connect(struct nl_sock *sk, int protocol)
if (ntries++ > 5) {
/* try only a few times. We hit this only if many ports are already in
* use but allocated *outside* libnl/generate_local_port(). */
- nl_socket_set_local_port (sk, 0);
+ _nl_socket_set_local_port_no_release (sk, 0);
break;
}
- port = _nl_socket_generate_local_port_no_release(sk);
+ port = _nl_socket_set_local_port_no_release(sk, 1);
if (port == 0)
break;