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

Fix uninitialized variables

parent aa516d3e
No related branches found
No related tags found
No related merge requests found
...@@ -277,8 +277,6 @@ int backend_shutdown( Backend *be ) ...@@ -277,8 +277,6 @@ int backend_shutdown( Backend *be )
/* close each backend database */ /* close each backend database */
for( i = 0; i < nBackendDB; i++ ) { for( i = 0; i < nBackendDB; i++ ) {
BackendInfo *bi;
if ( backendDB[i].bd_info->bi_db_close ) { if ( backendDB[i].bd_info->bi_db_close ) {
backendDB[i].bd_info->bi_db_close( backendDB[i].bd_info->bi_db_close(
&backendDB[i] ); &backendDB[i] );
...@@ -287,7 +285,7 @@ int backend_shutdown( Backend *be ) ...@@ -287,7 +285,7 @@ int backend_shutdown( Backend *be )
if(rc != 0) { if(rc != 0) {
Debug( LDAP_DEBUG_ANY, Debug( LDAP_DEBUG_ANY,
"backend_close: bi_close %s failed!\n", "backend_close: bi_close %s failed!\n",
bi->bi_type, 0, 0 ); backendDB[i].be_type, 0, 0 );
} }
} }
......
...@@ -125,6 +125,7 @@ do_search( ...@@ -125,6 +125,7 @@ do_search(
send_ldap_result( conn, op, err, send_ldap_result( conn, op, err,
NULL, "Bad search filter", NULL, NULL ); NULL, "Bad search filter", NULL, NULL );
} }
rc = -1;
goto return_results; goto return_results;
} }
......
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