summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2011-03-24 13:07:05 +0100
committerSimo Sorce <idra@samba.org>2011-03-24 14:57:12 -0400
commitfd89e29e7ee5065b6f4349e391c90c5f81e7c476 (patch)
treeb5b995e642f11b7af0b42bb8830554f6ae868ad3 /source3
parentbf1e330f69951400f12ecb17c82adadd1e901a58 (diff)
downloadsamba-fd89e29e7ee5065b6f4349e391c90c5f81e7c476.tar.gz
samba-fd89e29e7ee5065b6f4349e391c90c5f81e7c476.tar.bz2
samba-fd89e29e7ee5065b6f4349e391c90c5f81e7c476.zip
s3-epmapper: Use strcmp instead of strequal and check IPv6.
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/epmapper/srv_epmapper.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/rpc_server/epmapper/srv_epmapper.c b/source3/rpc_server/epmapper/srv_epmapper.c
index fa64c32b10..3c12b3caa2 100644
--- a/source3/rpc_server/epmapper/srv_epmapper.c
+++ b/source3/rpc_server/epmapper/srv_epmapper.c
@@ -196,7 +196,8 @@ static uint32_t build_ep_list(TALLOC_CTX *mem_ctx,
description->object = iface->iface->syntax_id;
if (description->transport == NCACN_IP_TCP &&
srv_addr != NULL &&
- strequal(description->host, "0.0.0.0")) {
+ (strcmp(description->host, "0.0.0.0") == 0 ||
+ strcmp(description->host, "::") == 0)) {
description->host = srv_addr;
}