Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/nslcd/rpc.c
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2009-11-01 15:51:59 +0100
committerArthur de Jong <arthur@arthurdejong.org>2009-11-01 15:51:59 +0100
commitc6aa1fa8ad2eae5e47eb907400c64694c2e67e2f (patch)
tree0a387a04a7f30c6b5901a357757e92a4b0bdf46f /nslcd/rpc.c
parent37dfc03f1b54451bda18671bd9d569caa4f85c57 (diff)
give search filter escaping buffers more logical names
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1014 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nslcd/rpc.c')
-rw-r--r--nslcd/rpc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nslcd/rpc.c b/nslcd/rpc.c
index 7783994..8e39729 100644
--- a/nslcd/rpc.c
+++ b/nslcd/rpc.c
@@ -64,15 +64,15 @@ static const char *rpc_attrs[3];
static int mkfilter_rpc_byname(const char *name,
char *buffer,size_t buflen)
{
- char buf2[1024];
+ char safename[1024];
/* escape attribute */
- if (myldap_escape(name,buf2,sizeof(buf2)))
+ if (myldap_escape(name,safename,sizeof(safename)))
return -1;
/* build filter */
return mysnprintf(buffer,buflen,
"(&%s(%s=%s))",
rpc_filter,
- attmap_rpc_cn,buf2);
+ attmap_rpc_cn,safename);
}
static int mkfilter_rpc_bynumber(int number,