diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2020-04-17 01:09:22 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2020-04-17 01:09:22 +0000 |
commit | 558a3ea23d03e347d567a56e5d40ea31ea6c422b (patch) | |
tree | 30c684f9f2ee08e96d98c13b041bf427c633de21 | |
parent | bfce4be5569c60687509a40c4f2304f2962182cb (diff) | |
parent | 7b753522c0b9fbf9f60fcf2648ffb6a5e5742c88 (diff) | |
download | dnsmasq-android11-release.tar.gz |
Snap for 6402531 from 7b753522c0b9fbf9f60fcf2648ffb6a5e5742c88 to rvc-releaseandroid-vts-11.0_r9android-vts-11.0_r8android-vts-11.0_r7android-vts-11.0_r6android-vts-11.0_r5android-vts-11.0_r4android-vts-11.0_r3android-vts-11.0_r2android-vts-11.0_r16android-vts-11.0_r15android-vts-11.0_r14android-vts-11.0_r13android-vts-11.0_r12android-vts-11.0_r11android-vts-11.0_r10android-vts-11.0_r1android-security-11.0.0_r1android-platform-11.0.0_r2android-platform-11.0.0_r1android-cts-11.0_r9android-cts-11.0_r8android-cts-11.0_r7android-cts-11.0_r6android-cts-11.0_r5android-cts-11.0_r4android-cts-11.0_r3android-cts-11.0_r2android-cts-11.0_r16android-cts-11.0_r15android-cts-11.0_r14android-cts-11.0_r13android-cts-11.0_r12android-cts-11.0_r11android-cts-11.0_r10android-cts-11.0_r1android-11.0.0_r6android-11.0.0_r5android-11.0.0_r4android-11.0.0_r3android-11.0.0_r25android-11.0.0_r2android-11.0.0_r17android-11.0.0_r1r-beta-2android11-tests-releaseandroid11-s1-releaseandroid11-release
Change-Id: I3add6db84790573d4ed778240fcd8ef02a0ad080
-rw-r--r-- | src/network.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/network.c b/src/network.c index 34d821d..98b4f68 100644 --- a/src/network.c +++ b/src/network.c @@ -833,8 +833,11 @@ void set_interfaces(const char* interfaces) { * Enumerate IP addresses (via RTM_GETADDR), adding IP entries to * daemon->interfaces for interface names listed in daemon->if_names. * The sockets are created by the create_bound_listener call below. + * Only do this if at least one interface was found. Otherwise, + * enumerate_interfaces will start listening on all interfaces on + * the system. */ - if (!enumerate_interfaces()) { + if (daemon->if_names != NULL && !enumerate_interfaces()) { die(_("enumerate interfaces error in set_interfaces: %s"), NULL, EC_BADNET); } |