From: jow Date: Sun, 1 Apr 2012 05:43:18 +0000 (+0000) Subject: [backfire] libnl-tiny: backport r31155 X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=19fc6077463677603fad644004b53c7722ee91ce;p=10.03%2Fopenwrt.git [backfire] libnl-tiny: backport r31155 git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@31156 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/package/libnl-tiny/Makefile b/package/libnl-tiny/Makefile index 4b02ef16b..51ad5415f 100644 --- a/package/libnl-tiny/Makefile +++ b/package/libnl-tiny/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2006-2009 OpenWrt.org +# Copyright (C) 2006-2012 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=libnl-tiny PKG_VERSION:=0.1 -PKG_RELEASE:=1 +PKG_RELEASE:=2.1 include $(INCLUDE_DIR)/package.mk diff --git a/package/libnl-tiny/src/socket.c b/package/libnl-tiny/src/socket.c index 6fe56fdc5..1429825e6 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); } /**