mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
s4:libcli/resolve/dns_ex.c - fix "const" warning
This commit is contained in:
parent
48dccbf2b5
commit
01c3cb260c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user