summaryrefslogtreecommitdiff
path: root/lib/nl.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/nl.c')
-rw-r--r--lib/nl.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/nl.c b/lib/nl.c
index 48588de5..bb11d2c7 100644
--- a/lib/nl.c
+++ b/lib/nl.c
@@ -116,11 +116,9 @@ int nl_connect(struct nl_sock *sk, int protocol)
goto errout;
}
- if (!(sk->s_flags & NL_SOCK_BUFSIZE_SET)) {
- err = nl_socket_set_buffer_size(sk, 0, 0);
- if (err < 0)
- goto errout;
- }
+ err = nl_socket_set_buffer_size(sk, 0, 0);
+ if (err < 0)
+ goto errout;
if (_nl_socket_is_local_port_unspecified (sk)) {
uint32_t port;