summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2005-05-19 10:52:36 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:56:56 -0500
commitf272f4069204711b9e1d9e72e42f134c65283f45 (patch)
tree6b019f263605e5060e7a9cc3f6d97aaa8150c62d /source3
parentbd16770954424d86298a57d6c59aa69d5b42ce07 (diff)
downloadsamba-f272f4069204711b9e1d9e72e42f134c65283f45.tar.gz
samba-f272f4069204711b9e1d9e72e42f134c65283f45.tar.bz2
samba-f272f4069204711b9e1d9e72e42f134c65283f45.zip
r6900: Fix bug 2725. Thanks, John, for finding it.
Volker (This used to be commit 913c06ad3e752f2b185faa411d90a2f7aaf42291)
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/net_ads.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/utils/net_ads.c b/source3/utils/net_ads.c
index 03fbb29f5b..dbed99e9cc 100644
--- a/source3/utils/net_ads.c
+++ b/source3/utils/net_ads.c
@@ -360,11 +360,13 @@ static int ads_user_info(int argc, const char **argv)
const char *attrs[] = {"memberOf", NULL};
char *searchstring=NULL;
char **grouplist;
- char *escaped_user = escape_ldap_string_alloc(argv[0]);
+ char *escaped_user;
if (argc < 1) {
return net_ads_user_usage(argc, argv);
}
+
+ escaped_user = escape_ldap_string_alloc(argv[0]);
if (!(ads = ads_startup())) {
return -1;