The floor data for EPM_PROTOCOL_IP only handles a 4 byte ipv4 address.
"0.0.0.0" is used for ipv6 and hostnames.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
goto done;
}
- if (p->local_address != NULL) {
+ if (p->local_address != NULL &&
+ tsocket_address_is_inet(p->local_address, "ipv4"))
+ {
srv_addr = tsocket_address_inet_addr_string(p->local_address,
tmp_ctx);
}
obj = r->in.object;
}
- if (p->local_address != NULL) {
+ if (p->local_address != NULL &&
+ tsocket_address_is_inet(p->local_address, "ipv4"))
+ {
srv_addr = tsocket_address_inet_addr_string(p->local_address,
tmp_ctx);
}