summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/libcli/resolve/dns_ex.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/libcli/resolve/dns_ex.c b/source4/libcli/resolve/dns_ex.c
index 711eb0abf1..35e2ad74c3 100644
--- a/source4/libcli/resolve/dns_ex.c
+++ b/source4/libcli/resolve/dns_ex.c
@@ -97,7 +97,8 @@ static void run_child_dns_lookup(struct dns_ex_state *state, int fd)
name doesn't end in a '.'. We need to prevent the
DNS library trying the search domains configured in
resolv.conf */
- state->name.name = talloc_strdup_append(state->name.name, ".");
+ state->name.name = talloc_strdup_append(discard_const_p(char, state->name.name),
+ ".");
}
/* this is the blocking call we are going to lots of trouble