1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-10 13:57:47 +03:00

Use strchr_m in seaching for '.' in the hostname to make sure we're mb safe.

Jeremy.
This commit is contained in:
Jeremy Allison 2008-01-23 15:00:40 -08:00
parent 5f60ed4af6
commit 090061b73a

View File

@ -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);