Codebase list cyrus-sasl2 / fdd69f3
Fix garbage in output buffer when using canonuser_plugin: ldapdb (Closes: #689346) Ondřej Surý 10 years ago
2 changed file(s) with 11 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
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 }
2222 0036-add-reference-to-LDAP_SASLAUTHD-file.patch
2323 0037-abort_if_no_fqdn_fix.patch
2424 0038-send_imap_logout.patch
25 0039-fix-canonuser-ldapdb-garbage-in-out-buffer.patch