mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
s4:libcli/resolve: only try broadcast messages to ipv4 addresses
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Sep 28 05:10:53 CEST 2011 on sn-devel-104
This commit is contained in:
parent
1210b8abe7
commit
14c05cf93a
@ -53,8 +53,18 @@ struct composite_context *resolve_name_bcast_send(TALLOC_CTX *mem_ctx,
|
||||
if (address_list == NULL) return NULL;
|
||||
|
||||
for (i=0;i<num_interfaces;i++) {
|
||||
const char *bcast = iface_list_n_bcast(data->ifaces, i);
|
||||
if (bcast == NULL) continue;
|
||||
bool ipv4 = iface_list_n_is_v4(data->ifaces, i);
|
||||
const char *bcast;
|
||||
|
||||
if (!ipv4) {
|
||||
continue;
|
||||
}
|
||||
|
||||
bcast = iface_list_n_bcast(data->ifaces, i);
|
||||
if (bcast == NULL) {
|
||||
continue;
|
||||
}
|
||||
|
||||
address_list[count] = talloc_strdup(address_list, bcast);
|
||||
if (address_list[count] == NULL) {
|
||||
talloc_free(address_list);
|
||||
|
Loading…
x
Reference in New Issue
Block a user