From 3877c41d07e7c79ae64a17b6a495901299ecfe08 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 5 Jun 2024 23:04:41 +0200 Subject: Merging upstream version 1:4.14.0. Signed-off-by: Daniel Baumann --- tools/findif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/findif.c') 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) { /* -- cgit v1.2.3