diff options
author | Bill Nottingham <notting@redhat.com> | 2009-08-10 13:59:22 -0400 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2009-08-10 13:59:22 -0400 |
commit | a95935d72ff61edba2002cffebc6a247f6dae5e5 (patch) | |
tree | 95df28edff88ba62e528f9cbb393c47f3d0b72fd /src/ipcalc.c | |
parent | e3ab05b8df753840a470d4c0f1f65632ea2fb18a (diff) | |
download | initscripts-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.c | 2 |
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; |