Skip to content
Snippets Groups Projects
Commit 04cecc76 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Fix pre/post attrs init bug (ITS#2728)

parent f6d883d9
No related branches found
No related tags found
No related merge requests found
......@@ -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, "," );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment