mirror of
https://github.com/samba-team/samba.git
synced 2025-08-29 13:49:30 +03:00
s3:srv_epmapper: only replace ipv4 addresses in _epm_Lookup() and _epm_Map()
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>
This commit is contained in:
committed by
Günther Deschner
parent
4f344f3b80
commit
ab32b67bbb
@ -560,7 +560,9 @@ error_status_t _epm_Lookup(struct pipes_struct *p,
|
||||
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);
|
||||
}
|
||||
@ -957,7 +959,9 @@ error_status_t _epm_Map(struct pipes_struct *p,
|
||||
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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user