mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-06 15:10:22 -05:00
Fix pre/post attrs init bug (ITS#2728)
This commit is contained in:
parent
f6d883d901
commit
04cecc7666
1 changed files with 2 additions and 2 deletions
|
|
@ -820,7 +820,7 @@ tool_server_controls( LDAP *ld, LDAPControl *extra_c, int count )
|
|||
if ( preread ) {
|
||||
char berbuf[LBER_ELEMENT_SIZEOF];
|
||||
BerElement *ber = (BerElement *)berbuf;
|
||||
char **attrs;
|
||||
char **attrs = NULL;
|
||||
|
||||
if( preread_attrs ) {
|
||||
attrs = ldap_str2charray( preread_attrs, "," );
|
||||
|
|
@ -850,7 +850,7 @@ tool_server_controls( LDAP *ld, LDAPControl *extra_c, int count )
|
|||
if ( postread ) {
|
||||
char berbuf[LBER_ELEMENT_SIZEOF];
|
||||
BerElement *ber = (BerElement *)berbuf;
|
||||
char **attrs;
|
||||
char **attrs = NULL;
|
||||
|
||||
if( postread_attrs ) {
|
||||
attrs = ldap_str2charray( postread_attrs, "," );
|
||||
|
|
|
|||
Loading…
Reference in a new issue