lib: fix type-punning in ip_masklen()

ip_masklen() was likely to return incorrect results after being compiled
with -fstrict-aliasing (-O2, -O3, -Os)
1 file changed