X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fnetutl.c;h=1cf03c3daebf6a35c877891c88702098ed623f7f;hp=0cf1e0b14a6a9abec774bf8cfa1eb445751ee8e6;hb=a1bd878e11ae7e66e7e9a4040c3b19f9b7bc50f4;hpb=627f7c22b447bd464b536cd016278545674df93d diff --git a/src/netutl.c b/src/netutl.c index 0cf1e0b1..1cf03c3d 100644 --- a/src/netutl.c +++ b/src/netutl.c @@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: netutl.c,v 1.12.4.40 2002/06/21 10:11:12 guus Exp $ + $Id: netutl.c,v 1.12.4.41 2002/06/21 17:49:48 guus Exp $ */ #include "config.h" @@ -241,7 +241,7 @@ cp i = masklen / 8; masklen %= 8; - if(a[i++] & (0xff >> masklen)) + if(masklen && a[i++] & (0xff >> masklen)) return -1; for(; i < len; i++)