summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2003-07-10 08:27:55 +0000
committerTim Potter <tpot@samba.org>2003-07-10 08:27:55 +0000
commit62c48a7dbb1161bd074c05afbe2a5260405cd87a (patch)
tree836a021ded63ce79cd980c22f95ee05af4f3889d
parenta7ef6aac3a78e7d98956d64ea6f858b1f20d0a19 (diff)
downloadsamba-62c48a7dbb1161bd074c05afbe2a5260405cd87a.tar.gz
samba-62c48a7dbb1161bd074c05afbe2a5260405cd87a.tar.bz2
samba-62c48a7dbb1161bd074c05afbe2a5260405cd87a.zip
Fix shadow parameter warning.
(This used to be commit 8d8d85ecd62dba075d90e54ec75da9b1328784fb)
-rw-r--r--source3/libads/ldap_user.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/libads/ldap_user.c b/source3/libads/ldap_user.c
index 7efe5338f3..e70249dd78 100644
--- a/source3/libads/ldap_user.c
+++ b/source3/libads/ldap_user.c
@@ -28,16 +28,16 @@
ADS_STATUS ads_find_user_acct(ADS_STRUCT *ads, void **res, const char *user)
{
ADS_STATUS status;
- char *exp;
+ char *ldap_exp;
const char *attrs[] = {"*", NULL};
char *escaped_user = escape_ldap_string_alloc(user);
if (!escaped_user) {
return ADS_ERROR(LDAP_NO_MEMORY);
}
- asprintf(&exp, "(samAccountName=%s)", escaped_user);
- status = ads_search(ads, res, exp, attrs);
- SAFE_FREE(exp);
+ asprintf(&ldap_exp, "(samAccountName=%s)", escaped_user);
+ status = ads_search(ads, res, ldap_exp, attrs);
+ SAFE_FREE(ldap_exp);
SAFE_FREE(escaped_user);
return status;
}