diff options
Diffstat (limited to 'release/sysinstall/tcpip.c')
-rw-r--r-- | release/sysinstall/tcpip.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/release/sysinstall/tcpip.c b/release/sysinstall/tcpip.c index 40a6af8..eaab392 100644 --- a/release/sysinstall/tcpip.c +++ b/release/sysinstall/tcpip.c @@ -1,5 +1,5 @@ /* - * $Id: tcpip.c,v 1.29.2.8 1995/06/06 06:08:29 jkh Exp $ + * $Id: tcpip.c,v 1.30.2.1 1995/07/21 10:02:59 rgrimes Exp $ * * Copyright (c) 1995 * Gary J Palmer. All rights reserved. @@ -126,7 +126,7 @@ static Layout layout[] = { { NULL }, }; -#define _validByte(b) ((b) >= 0 && (b) < 255) +#define _validByte(b) ((b) >= 0 && (b) <= 255) /* whine */ static void @@ -144,7 +144,7 @@ verifyIP(char *ip) if (ip && sscanf(ip, "%d.%d.%d.%d", &a, &b, &c, &d) == 4 && _validByte(a) && _validByte(b) && _validByte(c) && - _validByte(d)) + _validByte(d) && (d != 255)) return 1; else return 0; |