--- libelwix/src/patricia.c 2013/05/26 20:03:19 1.1.1.1.6.1 +++ libelwix/src/patricia.c 2013/07/18 14:55:42 1.2.16.1 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: patricia.c,v 1.1.1.1.6.1 2013/05/26 20:03:19 misho Exp $ +* $Id: patricia.c,v 1.2.16.1 2013/07/18 14:55:42 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -257,7 +257,7 @@ prefix_t *ascii2prefix(int family, char *string) memcpy(save, string, cp - string); save[cp - string] = 0; string = save; - if (bitlen < 0 || bitlen > maxbitlen) + if (bitlen > maxbitlen) bitlen = maxbitlen; } else bitlen = maxbitlen;