]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3/lib: fix matching interfaces with multiple assigned IPs
authorRalph Boehme <slow@samba.org>
Mon, 10 Mar 2025 13:29:23 +0000 (14:29 +0100)
committerMartin Schwenke <martins@samba.org>
Wed, 12 Mar 2025 01:32:30 +0000 (01:32 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15823

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Björn Jacke <bjacke@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Autobuild-User(master): Martin Schwenke <martins@samba.org>
Autobuild-Date(master): Wed Mar 12 01:32:30 UTC 2025 on atb-devel-224

source3/lib/interface.c

index 032362b4da38f2bfb43caea7981365e8969d3ee5..5f351999e41ffd04451f38fb3ca3b2e1b02fe3d9 100644 (file)
@@ -624,9 +624,12 @@ static void interpret_interface(char *token)
                                }
                                add_interface(&probed_ifaces[i]);
                                probed_ifaces[i].netmask = saved_mask;
-                               return;
+                               added = true;
                        }
                }
+               if (added) {
+                       return;
+               }
                DEBUG(2,("interpret_interface: Can't determine ip for "
                        "broadcast address %s\n",
                        token));