mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
Use strchr_m in seaching for '.' in the hostname to make sure we're mb safe.
Jeremy.
(This used to be commit 090061b73a
)
This commit is contained in:
parent
cfe7b54e96
commit
fe8a8f47e0
@ -877,7 +877,7 @@ ADS_STATUS cli_session_setup_spnego(struct cli_state *cli, const char *user,
|
||||
DEBUG(3,("cli_session_setup_spnego: got a "
|
||||
"bad server principal, trying to guess ...\n"));
|
||||
|
||||
host = strchr(cli->desthost, '.');
|
||||
host = strchr_m(cli->desthost, '.');
|
||||
if (host) {
|
||||
machine = SMB_STRNDUP(cli->desthost,
|
||||
host - cli->desthost);
|
||||
|
Loading…
Reference in New Issue
Block a user