]>
Commit | Line | Data |
---|---|---|
e5fd101c PS |
1 | autofs-5.0.4 - another easy alloca replacements fix |
2 | ||
3 | From: Ian Kent <raven@themaw.net> | |
4 | ||
5 | Fix array out of bounds access in modules/lookup_ldap.c:get_query_dn(). | |
6 | --- | |
7 | ||
8 | CHANGELOG | 1 + | |
9 | modules/lookup_ldap.c | 1 - | |
10 | 2 files changed, 1 insertions(+), 1 deletions(-) | |
11 | ||
12 | ||
13 | diff --git a/CHANGELOG b/CHANGELOG | |
14 | index 8860b2c..4df6a60 100644 | |
15 | --- a/CHANGELOG | |
16 | +++ b/CHANGELOG | |
17 | @@ -29,6 +29,7 @@ | |
18 | - fix bad token declaration in master map parser. | |
19 | - fix return start status on fail. | |
20 | - fix double free in expire_proc(). | |
21 | +- another easy alloca replacements fix. | |
22 | ||
23 | 4/11/2008 autofs-5.0.4 | |
24 | ----------------------- | |
25 | diff --git a/modules/lookup_ldap.c b/modules/lookup_ldap.c | |
26 | index 547ca01..5a54b5f 100644 | |
27 | --- a/modules/lookup_ldap.c | |
28 | +++ b/modules/lookup_ldap.c | |
29 | @@ -323,7 +323,6 @@ static int get_query_dn(unsigned logopt, LDAP *ldap, struct lookup_context *ctxt | |
30 | } | |
31 | scope = LDAP_SCOPE_SUBTREE; | |
32 | } | |
33 | - query[l] = '\0'; | |
34 | ||
35 | if (!ctxt->base) { | |
36 | sdns = defaults_get_searchdns(); |