summaryrefslogtreecommitdiff
path: root/source3/utils/net_ads.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-10-27 00:41:41 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:53:03 -0500
commitf8345c1b18904169666955c98474fa2d5894a007 (patch)
tree53ca3d4f949b75fef36cd160aead63984db4ff9b /source3/utils/net_ads.c
parent0e1de2d773c274ae2981a69a05c61919b52143ee (diff)
downloadsamba-f8345c1b18904169666955c98474fa2d5894a007.tar.gz
samba-f8345c1b18904169666955c98474fa2d5894a007.tar.bz2
samba-f8345c1b18904169666955c98474fa2d5894a007.zip
r3273: Ensure we're consistent in the use of strchr_m for '@'.
Jeremy. (This used to be commit 0f3f7b035b37bfc51d3a59d0472003c3d4ac1511)
Diffstat (limited to 'source3/utils/net_ads.c')
-rw-r--r--source3/utils/net_ads.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/net_ads.c b/source3/utils/net_ads.c
index 19311cde65..2202ee11e2 100644
--- a/source3/utils/net_ads.c
+++ b/source3/utils/net_ads.c
@@ -169,7 +169,7 @@ retry:
* extract the realm and convert to upper case.
* This is only used to establish the connection.
*/
- if ((cp = strchr(ads->auth.user_name, '@'))!=0) {
+ if ((cp = strchr_m(ads->auth.user_name, '@'))!=0) {
*cp++ = '\0';
ads->auth.realm = smb_xstrdup(cp);
strupper_m(ads->auth.realm);
@@ -1126,7 +1126,7 @@ static int net_ads_password(int argc, const char **argv)
}
use_in_memory_ccache();
- c = strchr(auth_principal, '@');
+ c = strchr_m(auth_principal, '@');
if (c) {
realm = ++c;
} else {