summaryrefslogtreecommitdiffstats
path: root/tools/findif.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-05 21:04:41 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-05 21:04:41 +0000
commit3877c41d07e7c79ae64a17b6a495901299ecfe08 (patch)
tree2fb504f23b71e595f7d7b961ed7ff42ea782f3f0 /tools/findif.c
parentReleasing progress-linux version 1:4.13.0-1~progress7.99u1. (diff)
downloadresource-agents-3877c41d07e7c79ae64a17b6a495901299ecfe08.tar.xz
resource-agents-3877c41d07e7c79ae64a17b6a495901299ecfe08.zip
Merging upstream version 1:4.14.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-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) {
/*