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

Fix index_change_vals NULL vals bug (ITS#238)

parent 10f138bc
No related branches found
No related tags found
No related merge requests found
......@@ -248,7 +248,8 @@ bdb2i_index_add_values(
return( -1 );
}
for ( i = 0; vals[i] != NULL; i++ ) {
if( vals != NULL ) {
for ( i = 0; vals[i] != NULL; i++ ) {
/*
* presence index entry
*/
......@@ -340,6 +341,7 @@ bdb2i_index_add_values(
if ( bigbuf != NULL ) {
free( bigbuf );
}
}
}
bdb2i_cache_close( be, db );
......
......@@ -306,7 +306,8 @@ index_change_values(
}
for ( i = 0; vals[i] != NULL; i++ ) {
if ( vals != NULL ) {
for ( i = 0; vals[i] != NULL; i++ ) {
/*
* presence index entry
*/
......@@ -416,7 +417,9 @@ index_change_values(
if ( bigbuf != NULL ) {
free( bigbuf );
}
}
}
ldbm_cache_close( be, db );
return( 0 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment