mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-23 14:09:39 +08:00
Fix pre/post attrs init bug (ITS#2728)
This commit is contained in:
parent
f6d883d901
commit
04cecc7666
@ -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 New Issue
Block a user