--- libelwix/src/patricia.c 2013/05/30 09:07:33 1.2 +++ 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.2 2013/05/30 09:07:33 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;