Skip to content
Snippets Groups Projects
Commit 7b88ccd9 authored by Hallvard Furuseth's avatar Hallvard Furuseth
Browse files

Fix uninitialized variables

parent aa516d3e
Branches
Tags
No related merge requests found
......@@ -277,8 +277,6 @@ int backend_shutdown( Backend *be )
/* close each backend database */
for( i = 0; i < nBackendDB; i++ ) {
BackendInfo *bi;
if ( backendDB[i].bd_info->bi_db_close ) {
backendDB[i].bd_info->bi_db_close(
&backendDB[i] );
......@@ -287,7 +285,7 @@ int backend_shutdown( Backend *be )
if(rc != 0) {
Debug( LDAP_DEBUG_ANY,
"backend_close: bi_close %s failed!\n",
bi->bi_type, 0, 0 );
backendDB[i].be_type, 0, 0 );
}
}
......
......@@ -125,6 +125,7 @@ do_search(
send_ldap_result( conn, op, err,
NULL, "Bad search filter", NULL, NULL );
}
rc = -1;
goto return_results;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment