summaryrefslogtreecommitdiff
path: root/package/libnl-tiny/src/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'package/libnl-tiny/src/socket.c')
-rw-r--r--package/libnl-tiny/src/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/libnl-tiny/src/socket.c b/package/libnl-tiny/src/socket.c
index 6fe56fd..1429825 100644
--- a/package/libnl-tiny/src/socket.c
+++ b/package/libnl-tiny/src/socket.c
@@ -59,7 +59,7 @@ static void release_local_port(uint32_t port)
return;
nr = port >> 22;
- used_ports_map[nr / 32] &= ~((nr % 32) + 1);
+ used_ports_map[nr / 32] &= ~(1 << nr % 32);
}
/**