Signed-off-by: Alon Bar-Lev <[email protected]>
---
src/openvpn/route.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/openvpn/route.c b/src/openvpn/route.c
index a628e77..dda71c9 100644
--- a/src/openvpn/route.c
+++ b/src/openvpn/route.c
@@ -1530,7 +1530,7 @@ print_in6_addr_netbits_only( struct in6_addr
network_copy, int netbits,
if ( bits_to_clear >= 8 )
{ network_copy.s6_addr[byte--] = 0; bits_to_clear -= 8; }
else
- { network_copy.s6_addr[byte--] &= (~0 << bits_to_clear); bits_to_clear
= 0; }
+ { network_copy.s6_addr[byte--] &= (0xff << bits_to_clear);
bits_to_clear = 0; }
}
return print_in6_addr( network_copy, 0, gc);
--
1.7.3.4