mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 01:29:59 -05:00
Do not allocate a new cbinding if we have one already.
This commit is contained in:
parent
3bda24173d
commit
5b55054544
1 changed files with 2 additions and 1 deletions
|
|
@ -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 a new issue