mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-23 08:09:34 -05:00
fix uninitialized pointer (ITS#1538)
This commit is contained in:
parent
d70f117b69
commit
861e9a66b5
1 changed files with 2 additions and 2 deletions
|
|
@ -37,7 +37,7 @@ do_search(
|
||||||
struct berval nbase = { 0, NULL };
|
struct berval nbase = { 0, NULL };
|
||||||
struct berval fstr = { 0, NULL };
|
struct berval fstr = { 0, NULL };
|
||||||
Filter *filter = NULL;
|
Filter *filter = NULL;
|
||||||
AttributeName *an;
|
AttributeName *an = NULL;
|
||||||
ber_len_t siz, off, i;
|
ber_len_t siz, off, i;
|
||||||
Backend *be;
|
Backend *be;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
@ -327,7 +327,7 @@ return_results:;
|
||||||
|
|
||||||
if( fstr.bv_val != NULL) free( fstr.bv_val );
|
if( fstr.bv_val != NULL) free( fstr.bv_val );
|
||||||
if( filter != NULL) filter_free( filter );
|
if( filter != NULL) filter_free( filter );
|
||||||
free(an);
|
if( an != NULL ) free( an );
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue