summaryrefslogtreecommitdiffstats
path: root/tools/findif.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/findif.c')
-rw-r--r--tools/findif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/findif.c b/tools/findif.c
index a25395f..ab108a3 100644
--- a/tools/findif.c
+++ b/tools/findif.c
@@ -669,7 +669,7 @@ main(int argc, char ** argv) {
}
}
- if (netmaskbits) {
+ if (netmaskbits != NULL && *netmaskbits != EOS) {
best_netmask = netmask;
}else if (best_netmask == 0L) {
/*