aboutsummaryrefslogtreecommitdiffstats
path: root/src/ipcalc.c
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2009-08-10 13:59:22 -0400
committerBill Nottingham <notting@redhat.com>2009-08-10 13:59:22 -0400
commita95935d72ff61edba2002cffebc6a247f6dae5e5 (patch)
tree95df28edff88ba62e528f9cbb393c47f3d0b72fd /src/ipcalc.c
parente3ab05b8df753840a470d4c0f1f65632ea2fb18a (diff)
downloadinitscripts-a95935d72ff61edba2002cffebc6a247f6dae5e5.tar
initscripts-a95935d72ff61edba2002cffebc6a247f6dae5e5.tar.gz
initscripts-a95935d72ff61edba2002cffebc6a247f6dae5e5.tar.bz2
initscripts-a95935d72ff61edba2002cffebc6a247f6dae5e5.tar.xz
initscripts-a95935d72ff61edba2002cffebc6a247f6dae5e5.zip
Fix IPv6 address checking (#516319)
Diffstat (limited to 'src/ipcalc.c')
-rw-r--r--src/ipcalc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipcalc.c b/src/ipcalc.c
index 6f1be64b..c93e8329 100644
--- a/src/ipcalc.c
+++ b/src/ipcalc.c
@@ -336,7 +336,7 @@ int main(int argc, const char **argv) {
}
/* Handle CIDR entries such as 172/8 */
- if (prefix >= 0) {
+ if (prefix >= 0 && familyIPv4) {
char *tmp = ipStr;
int i;