summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-01-23 15:00:40 -0800
committerJeremy Allison <jra@samba.org>2008-01-23 15:00:40 -0800
commitfe8a8f47e0eefd064031e87fec4cdd2736716550 (patch)
tree1d6882ef425d6a813f088c9c2215ac38042bef63 /source3/libsmb
parentcfe7b54e96d39d19ad6b28c0d7db380907171e21 (diff)
downloadsamba-fe8a8f47e0eefd064031e87fec4cdd2736716550.tar.gz
samba-fe8a8f47e0eefd064031e87fec4cdd2736716550.tar.bz2
samba-fe8a8f47e0eefd064031e87fec4cdd2736716550.zip
Use strchr_m in seaching for '.' in the hostname to make sure we're mb safe.
Jeremy. (This used to be commit 090061b73a1c086ff8a7797e1a63532eacd91148)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/cliconnect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c
index de5813df6b..fd860ae7f0 100644
--- a/source3/libsmb/cliconnect.c
+++ b/source3/libsmb/cliconnect.c
@@ -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);