git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfe7b54
)
Use strchr_m in seaching for '.' in the hostname to make sure we're mb safe.
author
Jeremy Allison
<jra@samba.org>
Wed, 23 Jan 2008 23:00:40 +0000
(15:00 -0800)
committer
Jeremy Allison
<jra@samba.org>
Wed, 23 Jan 2008 23:00:40 +0000
(15:00 -0800)
Jeremy.
(This used to be commit
090061b73a1c086ff8a7797e1a63532eacd91148
)
source3/libsmb/cliconnect.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/cliconnect.c
b/source3/libsmb/cliconnect.c
index de5813df6b5d9254c5553b7033106e93780be8a0..fd860ae7f0a0ea327d5393ef4900b38f7766906a 100644
(file)
--- 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);