]> 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)
committerJule Anger <janger@samba.org>
Thu, 20 Mar 2025 14:50:08 +0000 (14:50 +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

(cherry picked from commit b85f056e7312ea9839b6fda617132fcc956da3c1)

Autobuild-User(v4-21-test): Jule Anger <janger@samba.org>
Autobuild-Date(v4-21-test): Thu Mar 20 14:50:08 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));