diff options
Diffstat (limited to 'src/ipcalc.c')
-rw-r--r-- | src/ipcalc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ipcalc.c b/src/ipcalc.c index 6a803f11..9108e4c2 100644 --- a/src/ipcalc.c +++ b/src/ipcalc.c @@ -319,8 +319,8 @@ int main(int argc, const char **argv) { } } - if (showBroadcast || showNetwork || showPrefix) { - if (!(netmaskStr = (char *) poptGetArg(optCon)) && (prefix < 0)) { + if (showBroadcast || showNetwork || showPrefix || doCheck) { + if (!(netmaskStr = (char *) poptGetArg(optCon)) && (prefix < 0 && !doCheck)) { if (!beSilent) { fprintf(stderr, "ipcalc: netmask or prefix expected\n"); poptPrintHelp(optCon, stderr, 0); |