mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-05 13:40:08 +08:00
Do not allocate a new cbinding if we have one already.
This commit is contained in:
parent
3bda24173d
commit
5b55054544
@ -481,7 +481,8 @@ ldap_int_sasl_bind(
|
||||
{
|
||||
char cbinding[64];
|
||||
struct berval cbv = { sizeof(cbinding), cbinding };
|
||||
if ( ldap_pvt_tls_get_unique( ssl, &cbv, 0 )) {
|
||||
if ( ld->ld_defconn->lconn_sasl_cbind == NULL &&
|
||||
ldap_pvt_tls_get_unique( ssl, &cbv, 0 )) {
|
||||
sasl_channel_binding_t *cb = ldap_memalloc( sizeof(*cb) +
|
||||
cbv.bv_len);
|
||||
void *cb_data; /* used since cb->data is const* */
|
||||
|
Loading…
Reference in New Issue
Block a user