mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-17 12:24:19 -05:00
ITS#9802 slapd-ldap/meta/async-meta: plug memleak in keepalive config
This commit is contained in:
parent
e9b11154ee
commit
f0a6465f23
3 changed files with 15 additions and 9 deletions
|
|
@ -2498,9 +2498,11 @@ asyncmeta_back_cf_gen( ConfigArgs *c )
|
|||
break;
|
||||
#endif /* SLAPD_META_CLIENT_PR */
|
||||
|
||||
case LDAP_BACK_CFG_KEEPALIVE:
|
||||
slap_keepalive_parse( ber_bvstrdup(c->argv[1]),
|
||||
&mt->mt_tls.sb_keepalive, 0, 0, 0);
|
||||
case LDAP_BACK_CFG_KEEPALIVE: {
|
||||
struct berval bv;
|
||||
ber_str2bv( c->argv[1], 0, 1, &bv );
|
||||
slap_keepalive_parse( &bv, &mt->mt_tls.sb_keepalive, 0, 0, 0 );
|
||||
}
|
||||
break;
|
||||
|
||||
case LDAP_BACK_CFG_TCP_USER_TIMEOUT:
|
||||
|
|
|
|||
|
|
@ -2051,9 +2051,11 @@ done_url:;
|
|||
}
|
||||
break;
|
||||
|
||||
case LDAP_BACK_CFG_KEEPALIVE:
|
||||
slap_keepalive_parse( ber_bvstrdup(c->argv[1]),
|
||||
&li->li_tls.sb_keepalive, 0, 0, 0);
|
||||
case LDAP_BACK_CFG_KEEPALIVE: {
|
||||
struct berval bv;
|
||||
ber_str2bv( c->argv[1], 0, 1, &bv );
|
||||
slap_keepalive_parse( &bv, &li->li_tls.sb_keepalive, 0, 0, 0 );
|
||||
}
|
||||
break;
|
||||
|
||||
case LDAP_BACK_CFG_TCP_USER_TIMEOUT:
|
||||
|
|
|
|||
|
|
@ -2913,9 +2913,11 @@ map_fail:;
|
|||
break;
|
||||
#endif /* SLAPD_META_CLIENT_PR */
|
||||
|
||||
case LDAP_BACK_CFG_KEEPALIVE:
|
||||
slap_keepalive_parse( ber_bvstrdup(c->argv[1]),
|
||||
&mt->mt_tls.sb_keepalive, 0, 0, 0);
|
||||
case LDAP_BACK_CFG_KEEPALIVE: {
|
||||
struct berval bv;
|
||||
ber_str2bv( c->argv[ 1 ], 0, 1, &bv );
|
||||
slap_keepalive_parse( &bv, &mt->mt_tls.sb_keepalive, 0, 0, 0 );
|
||||
}
|
||||
break;
|
||||
|
||||
case LDAP_BACK_CFG_TCP_USER_TIMEOUT:
|
||||
|
|
|
|||
Loading…
Reference in a new issue