Fix garbage in output buffer when using canonuser_plugin: ldapdb (Closes: #689346)
Ondřej Surý
10 years ago
|
0 |
--- a/plugins/ldapdb.c
|
|
1 |
+++ b/plugins/ldapdb.c
|
|
2 |
@@ -406,6 +406,7 @@ ldapdb_canon_server(void *glob_context,
|
|
3 |
if ( len > out_max )
|
|
4 |
len = out_max;
|
|
5 |
memcpy(out, bvals[0]->bv_val, len);
|
|
6 |
+ out[len] = '\0';
|
|
7 |
*out_ulen = len;
|
|
8 |
ber_bvecfree(bvals);
|
|
9 |
}
|
22 | 22 |
0036-add-reference-to-LDAP_SASLAUTHD-file.patch
|
23 | 23 |
0037-abort_if_no_fqdn_fix.patch
|
24 | 24 |
0038-send_imap_logout.patch
|
|
25 |
0039-fix-canonuser-ldapdb-garbage-in-out-buffer.patch
|